Hardcode rewrite destinations

This commit is contained in:
Darren Clarke 2024-08-28 10:42:50 +02:00
parent fc16583911
commit e82cb0e10d
2 changed files with 2 additions and 3 deletions

View file

@ -12,7 +12,6 @@ build-all:
TURBO_TEAM: ${TURBO_TEAM}
ZAMMAD_URL: ${ZAMMAD_URL}
script:
- env
- npm install npm@latest -g
- npm install -g turbo
- npm ci

View file

@ -19,11 +19,11 @@ const nextConfig = {
beforeFiles: [
{
source: "/api/v1/:path*",
destination: `${process.env.ZAMMAD_URL}/api/v1/:path*`,
destination: `http://zammad-nginx:8080/api/v1/:path*`,
},
{
source: "/ws",
destination: `${process.env.ZAMMAD_URL}/ws`,
destination: `http://zammad-nginx:8080/ws`,
},
],
};