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>
7 lines
73 B
Text
7 lines
73 B
Text
node_modules
|
|
.next
|
|
.env
|
|
.env.local
|
|
.env.development
|
|
.env.production
|
|
.git
|