trade-frontend/.dockerignore
Claude 247f02aaf2
fix(docker): runtime API_URL for SSR in Docker containers
NEXT_PUBLIC_* vars are baked at build time and can't change at runtime.
Server-side rendering (getInitialProps, getServerSideProps, rewrites)
now reads process.env.API_URL at runtime, falling back to the baked
NEXT_PUBLIC_API_URL for client-side code.

This allows the Docker image to connect to trade-api via Docker DNS
while the browser still uses the public URL.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-03 12:58:49 +01:00

7 lines
73 B
Text

node_modules
.next
.env
.env.local
.env.development
.env.production
.git