feat: make Directus CMS URL configurable via environment variable with a default.
All checks were successful
Build & Deploy KLZ Cables / 🔍 Prepare Environment (push) Successful in 21s
Build & Deploy KLZ Cables / 🧪 Quality Assurance (push) Successful in 1m17s
Build & Deploy KLZ Cables / 🏗️ Build & Push (push) Successful in 3m42s
Build & Deploy KLZ Cables / 🚀 Deploy (push) Successful in 56s
Build & Deploy KLZ Cables / 🔔 Notifications (push) Successful in 2s

This commit is contained in:
2026-02-01 11:17:24 +01:00
parent 03e597442b
commit 4cb7d438a0
3 changed files with 7 additions and 1 deletions

View File

@@ -327,6 +327,8 @@ const nextConfig = {
? new URL(process.env.SENTRY_DSN).origin
: 'https://errors.infra.mintel.me';
const directusUrl = process.env.DIRECTUS_URL || 'https://cms.klz-cables.com';
return [
{
source: '/stats/:path*',
@@ -338,7 +340,7 @@ const nextConfig = {
},
{
source: '/cms/:path*',
destination: `${process.env.DIRECTUS_URL}/:path*`,
destination: `${directusUrl}/:path*`,
},
];
},