baseURL in docker compose environment

Current Setup:
  • BetterAuth client instance on Next.js
  • BetterAuth server instance on Express.js
  • PostgreSQL + Prisma
Requirement(s):
  • Running the application with just one
    docker compose up -d
    command.
Blocker(s):
  • baseURL needs to be present at the time of building docker image.
Is it possible to make baseURL dynamic (i.e, determined during the runtime instead of build time) or atleast somehow make it work with next.js async rewrites() ?
Was this page helpful?