Mirage
Environment variables not available when running on Netlify Edge
I solved this by supplying the value in
nuxt.config.ts
which hardcodes the environment variable during build.
So instead of:
I used:
It kinda makes sense to me that this works, but not sure if there are any security implications with this usage. Especially for secrets / non-NUXT_PUBLIC_
variables.8 replies
I get TypeError: Object prototype may only be an Object or null: undefined when deploying to Netlify
This unfortunately didn't help me, the suggested command is incorrect and
source-map-cli
can't resolve the mapping. However, I was able to track the issue down by gradually applying new changes to find the culprit. (jsonwebtoken
was the problem and had to use jose
instead)6 replies
[resolved] How would you implement showing a success message after posting a form?
I ended up using
success=true
just like you suggested. It's the most forward approach, even though it has the issue of being persistent so long as the parameter existing in the url. I'll revisit this topic in the future to see if I can come up with a better approach.7 replies
Nuxt-auth causing 500 Server Error due to invalid url passed to `new URL`.
Thanks a lot for clarifying how this works. Is my understanding correct that
npx nuxi upgrade -f
will still upgrade non-root dependencies even if I'm already running latest Nuxt version? Because that was my case (I created the project around 2 weeks ago), because this isn't mentioned in the documentation. Regardless, I'd still give it a shot next time I encounter a similar issue.6 replies