fix homepage storefront proxy and CSP
Build & Deploy / Build & Push Docker Image (push) Successful in 2m50s
Test / Type Check (all packages) (push) Successful in 52s
Build & Deploy / Deploy to VPS (push) Successful in 3s
Test / API Unit Tests (push) Successful in 54s
Test / Homepage Unit Tests (push) Successful in 44s
Test / Storefront Unit Tests (push) Successful in 41s
Test / Admin Unit Tests (push) Successful in 42s
Test / Dashboard Unit Tests (push) Successful in 41s
Test / API Integration Tests (push) Successful in 1m0s

This commit is contained in:
root
2026-07-02 13:55:10 -04:00
parent 9c11f3660d
commit 56c3bcf666
6 changed files with 98 additions and 5 deletions
+10
View File
@@ -54,8 +54,18 @@ const nextConfig: NextConfig = {
process.env.DASHBOARD_INTERNAL_URL ?? 'http://dashboard:3001';
const adminOrigin =
process.env.ADMIN_INTERNAL_URL ?? 'http://admin:3002';
const storefrontOrigin =
process.env.STOREFRONT_INTERNAL_URL ?? 'http://storefront:3004';
return [
{
source: '/storefront',
destination: `${storefrontOrigin}`,
},
{
source: '/storefront/:path*',
destination: `${storefrontOrigin}/:path*`,
},
{
source: '/dashboard',
destination: `${dashboardOrigin}/dashboard`,