Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

adapter-cloudflare-workers: Configure custom wrangler.toml file name #7103

Closed
ghost opened this issue Sep 30, 2022 · 0 comments · Fixed by #7104
Closed

adapter-cloudflare-workers: Configure custom wrangler.toml file name #7103

ghost opened this issue Sep 30, 2022 · 0 comments · Fixed by #7104

Comments

@ghost
Copy link

ghost commented Sep 30, 2022

Describe the problem

My use case requires multiple wrangler.toml files.

The current implementation does not allow for other names other than wrangler.toml.

Describe the proposed solution

Add an option to the adapter to allow changing the default wrangler.toml, like so:

import adapter from '@sveltejs/adapter-cloudflare-workers';

export default {
  kit: {
    adapter: adapter({ config: '<your-wrangler-name>.toml' })
  }
};

Alternatives considered

I have used a script to swap out the wrangler.toml.

Importance

nice to have

Additional Information

No response

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants