Replace static arrays with Next.js Server Component fetch() calls. Add express.static for /uploads. Revalidate every hour.
7 lines
380 B
Text
7 lines
380 B
Text
# Server-to-server API URL (Next.js Server Components → Express backend)
|
|
# Docker: http://backend:4000 | Local dev: http://localhost:4000
|
|
BACKEND_URL=http://backend:4000
|
|
|
|
# Browser-accessible backend URL (used for document download links in rendered HTML)
|
|
# Must be publicly reachable — set to your Caddy-fronted domain or IP
|
|
NEXT_PUBLIC_BACKEND_URL=https://api.lad1908.org
|