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:
|
||||
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue