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:
build: .
restart: unless-stopped
environment:
- NEXT_PUBLIC_BASE_PATH=/tbff
labels:
- "traefik.enable=true"
- "traefik.http.routers.flow-funding.rule=Host(`flowidity.io`) && PathPrefix(`/tbff`)"
- "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"
networks:
- traefik-public

View File

@ -1,8 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '',
assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH || '',
basePath: '/tbff',
assetPrefix: '/tbff',
}
module.exports = nextConfig