Fix basePath for /tbff deployment - hardcode at build time
This commit is contained in:
parent
8e43f9e383
commit
aa8c714146
|
|
@ -2,14 +2,10 @@ services:
|
||||||
flow-funding:
|
flow-funding:
|
||||||
build: .
|
build: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
|
||||||
- NEXT_PUBLIC_BASE_PATH=/tbff
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.flow-funding.rule=Host(`flowidity.io`) && PathPrefix(`/tbff`)"
|
- "traefik.http.routers.flow-funding.rule=Host(`flowidity.io`) && PathPrefix(`/tbff`)"
|
||||||
- "traefik.http.routers.flow-funding.priority=100"
|
- "traefik.http.routers.flow-funding.priority=100"
|
||||||
- "traefik.http.routers.flow-funding.middlewares=flow-funding-stripprefix"
|
|
||||||
- "traefik.http.middlewares.flow-funding-stripprefix.stripprefix.prefixes=/tbff"
|
|
||||||
- "traefik.http.services.flow-funding.loadbalancer.server.port=3000"
|
- "traefik.http.services.flow-funding.loadbalancer.server.port=3000"
|
||||||
networks:
|
networks:
|
||||||
- traefik-public
|
- traefik-public
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
output: 'standalone',
|
output: 'standalone',
|
||||||
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '',
|
basePath: '/tbff',
|
||||||
assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH || '',
|
assetPrefix: '/tbff',
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = nextConfig
|
module.exports = nextConfig
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue