NuxtN
Nuxt4mo ago
3 replies
Rekar Omar

nuxt.config.ts - runtimeconfig - .env

In my Nuxt config file, when i want to leave the config empty and override it using my .env file, it works only on localhost, and does not work on my VPS when i build it.

NUXT_PUBLIC_API_BASE
Screenshot_2025-10-16_at_2.24.46_PM.png
Screenshot_2025-10-16_at_2.24.52_PM.png
Was this page helpful?