Richard E
Explore posts from serversIs it possible for any env variables to be leaked from the nitro server package?
After build I can see my db connection info from the env variable embedded into the node-server.mjs file. Is there any way at all that could be surfaced to the client if all my code that uses that variable is in a server route such as trpc calls?
1 replies
Getting 404 after app.config.ts change
Not sure if anyone else if getting this but I've been making changes to app.config.ts in dev mode and Nitro is triggering a page reload but I'm then getting a 404 of that page. If I wait a little while I can refresh the page and everything is fine.
Here is what I'm doing if you can reproduce.
1. Using the nuxt-ui-pro/saas project template here, https://github.com/nuxt-ui-pro/saas
2. Creating the initial site off the template with
npx nuxi init -t github:nuxt-ui-pro/saas
3. Opening the code up with VS Code, then starting the dev server with pnpm run dev
and everything looks fine
4. In the content subfolder, edit the 0.index.yml
file and change the hero title and you should see everything hot reloads. I have developer tools open for my browser with Disable cache
ticked because if I don't I get some cached content from another site I had on localhost:3000
5. Now if I edit the app.config.ts file and change anything or even just save what is already there Nitro sees a change and reloads that file, but in the brower I get the following:
6. If I refresh my browser page then I get the full page with changes
Any ideas? This is killing any productivity I might have in editing the site and really annoying.4 replies