Timo
useRuntimeConfig empty in wrangler local preview
I am trying to read out some env vars that are present in .dev.vars and therefore in event.context.cloudflare.env. However if i try to access those secrets using useRuntimeConfig(event) they are empty. I can clrealy see that wrangler is passing them together with the request.
preset:
cloudflare-module
nitro version: 2.11.0-20250115-115413.749f035d
snippet:
22 replies
How to enable SPA mode
Hello, I am trying to configure nuxt to output a simple SPA similar to a default vite build. Things I've tried:
- ssr: false disables serverside rendering, but nitro is still being built
- nitro.static: true statically generates all pages
- router.options.hashMode: true to enable the hash based clientside routing
None of these (in combination) give me the desired build output. All i am looking for is a single index.html entrypoint. Note that i am not working on a regular web app and i pretty much only use nuxt for the file based routing and auto imports. The targeted use case is a user interface embedded into a game using chromium embedded framework.
Best regards
6 replies