N
Nuxt5mo ago
Yannick

Runtime Config loaded after page refresh?

Hey guys, I currently have the problem that my runtime config has the right values only after I fully reload the page. nuxt.config.ts -> ssr: false
runtimeConfig: {
public: {
apiBaseUrl: "http://localhost",
},
},
runtimeConfig: {
public: {
apiBaseUrl: "http://localhost",
},
},
Docker Environment
NUXT_PUBLIC_API_BASE_URL=https://api.domain.com
NUXT_PUBLIC_API_BASE_URL=https://api.domain.com
When I first visit the page, it is always the default value. After I reload the page it changes to the correct value. It is such a weird case I never had.
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server