Fix frontend API URL configuration for local development
This commit is contained in:
parent
ce75ee5c61
commit
5e4e6ee831
@ -4,14 +4,14 @@ const nextConfig = {
|
||||
...(process.env.NODE_ENV === 'production' && { output: 'standalone' }),
|
||||
|
||||
env: {
|
||||
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || 'https://candivista.com',
|
||||
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8083',
|
||||
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY || 'pk_test_your_publishable_key_here',
|
||||
},
|
||||
|
||||
// Only add rewrites for production (Docker)
|
||||
...(process.env.NODE_ENV === 'production' && {
|
||||
async rewrites() {
|
||||
const apiUrl = process.env.NEXT_PUBLIC_API_URL || 'https://candivista.com';
|
||||
const apiUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8083';
|
||||
return [
|
||||
{
|
||||
source: '/rest/:path*',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user