Add NEXT_PUBLIC asset vars to runtime environment

NEXT_PUBLIC_ vars need to be set both at build time (client bundle)
AND at runtime (server-side rendering in standalone mode).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-02-13 13:06:44 -07:00
parent 41d784e92d
commit cd7c0200f3
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@ services:
- NEXT_PUBLIC_DIRECTUS_URL=https://katheryn-cms.jeffemmett.com
- DIRECTUS_API_TOKEN=katheryn-frontend-readonly-8591de0316ded82fab45328cf1e49cb1
- DIRECTUS_INTERNAL_URL=http://katheryn-cms:8055
- NEXT_PUBLIC_DIRECTUS_ASSET_URL=http://katheryn-cms:8055
- NEXT_PUBLIC_DIRECTUS_ASSET_TOKEN=katheryn-frontend-readonly-8591de0316ded82fab45328cf1e49cb1
labels:
- "traefik.enable=true"
- "traefik.http.routers.katheryn-staging.rule=Host(`katheryn-staging.jeffemmett.com`)"