Fix basePath for /tbff deployment - hardcode at build time

This commit is contained in:
Jeff Emmett 2026-01-29 18:33:03 +00:00
parent 8e43f9e383
commit aa8c714146
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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