From aa8c71414611a6f2f717a19ffc89bc6146e22583 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Thu, 29 Jan 2026 18:33:03 +0000 Subject: [PATCH] Fix basePath for /tbff deployment - hardcode at build time --- docker-compose.yml | 4 ---- next.config.js | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f82c6fc..c6272c4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/next.config.js b/next.config.js index ce733a6..2a2c01b 100644 --- a/next.config.js +++ b/next.config.js @@ -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