-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: generate wrangler.toml
in CF deployment to use bindings
#63
Conversation
Deploying nuxthub-docs with
|
Latest commit: |
51bb1fa
|
Status: | ✅ Deploy successful! |
Preview URL: | https://0dc6f05e.nuxthub-module.pages.dev |
Branch Preview URL: | https://feat-wrangler-toml.nuxthub-module.pages.dev |
this is definitely conflicting with nitro in the future... :( |
Following our call with @pi0 about the best way forward and his work on nitrojs/nitro#2353 (thank you!) The NuxtHub API should send back a wrangler in a JSON format as Nitro uses confbox to generate the Instead of generating the nuxt.options.nitro.cloudflare.wrangler = defu(wranglerConfigFromNuxtHub, nuxt.options.nitro.cloudflare.wrangler) So far Cloudflare Pages CI is reading from the Also, I am not sure that we should have the nitro.cloudflare.wranglerPath // default to join(nitro.options.rootDir, 'wrangler.toml')
nitro.cloudflare.wranglerOutputPath // default to join(nitro.options.output.publicDir, 'wrangler.toml') |
wrangler.toml
in CF deployment to use bindingswrangler.toml
in CF deployment to use bindings
…hub#63) * fix: generate `wrangler.toml` in CF deployment to use bindings * up * fix: environment variables * up * up * chore: update to use wrangler object * chore: use nitropack-nightly * fix: await bundling for openapi * cohre: add todo * fix: warn and exit when changes detected in bindings * fix: remove nitro nightly * chore: up * Update src/runtime/server/api/_hub/openapi.get.ts * Update src/utils.ts --------- Co-authored-by: Sébastien Chopin <[email protected]>
No description provided.