You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportdefaultdefineNuxtConfig({runtimeConfig: {// should be process.env.NUXT_GITHUB_TOKENgithubToken: process.env.MY_GITHUB_TOKEN,public: {// should be process.env.NUXT_PUBLIC_SOME_VARsomeVar: process.env.SOMEVAR}}})
The reason being that often people are not aware that their nuxt config isn't 'reread' in production. And they may have these variables set in an env - which works in dev, but will fail when built.
It should also be valid to set these variables to some value without referencing process.env
they need to match the object pattern - would be nice if we could provide support for this
The text was updated successfully, but these errors were encountered: