Hardcode rewrite destinations
This commit is contained in:
parent
fc16583911
commit
e82cb0e10d
2 changed files with 2 additions and 3 deletions
|
|
@ -12,7 +12,6 @@ build-all:
|
||||||
TURBO_TEAM: ${TURBO_TEAM}
|
TURBO_TEAM: ${TURBO_TEAM}
|
||||||
ZAMMAD_URL: ${ZAMMAD_URL}
|
ZAMMAD_URL: ${ZAMMAD_URL}
|
||||||
script:
|
script:
|
||||||
- env
|
|
||||||
- npm install npm@latest -g
|
- npm install npm@latest -g
|
||||||
- npm install -g turbo
|
- npm install -g turbo
|
||||||
- npm ci
|
- npm ci
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,11 @@ const nextConfig = {
|
||||||
beforeFiles: [
|
beforeFiles: [
|
||||||
{
|
{
|
||||||
source: "/api/v1/:path*",
|
source: "/api/v1/:path*",
|
||||||
destination: `${process.env.ZAMMAD_URL}/api/v1/:path*`,
|
destination: `http://zammad-nginx:8080/api/v1/:path*`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: "/ws",
|
source: "/ws",
|
||||||
destination: `${process.env.ZAMMAD_URL}/ws`,
|
destination: `http://zammad-nginx:8080/ws`,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue