nuxt.config
ssr: true,
routeRules: {
'/api/**': { proxy: 'https://api.localhost' },
},
runtimeConfig: {
public: {
apiUrl: 'https://api.localhost',
}
},
vite: {
server: {
strictPort: true,
hmr: {
protocol: 'ws',
clientPort: 3001,
port: 3001,
},
watch: {
usePolling: true,
},
},
},
nuxt.config
ssr: true,
routeRules: {
'/api/**': { proxy: 'https://api.localhost' },
},
runtimeConfig: {
public: {
apiUrl: 'https://api.localhost',
}
},
vite: {
server: {
strictPort: true,
hmr: {
protocol: 'ws',
clientPort: 3001,
port: 3001,
},
watch: {
usePolling: true,
},
},
},