NuxtN
Nuxt2y 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",
    },
  },


Docker Environment
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.
CleanShot_2024-08-16_at_00.00.002x.png
Was this page helpful?