NuxtN
Nuxt8mo ago
15 replies
Thick Black W

How to set production port?

npm run build always builds on default port 3000 despite setting the PORT .env variable, and even getting help from chatgpt that said to set it in runtime config
 runtimeConfig: {
  
    
    public: {
        port: process.env.PORT || 3300
    }
  },
Was this page helpful?