feat: complete migration to static MDX, stabilize local infrastructure and fix i18n issues
Some checks failed
🚀 Build & Deploy / 🔍 Prepare (push) Successful in 4s
🚀 Build & Deploy / 🚀 Deploy (push) Has been cancelled
🚀 Build & Deploy / 🧪 Post-Deploy Verification (push) Has been cancelled
🚀 Build & Deploy / 🏗️ Build (push) Has been cancelled
🚀 Build & Deploy / 🔔 Notify (push) Has been cancelled
🚀 Build & Deploy / 🧪 QA (push) Has been cancelled

This commit is contained in:
2026-05-04 10:26:45 +02:00
parent 41ef9092d6
commit 5fb73d57dd
43 changed files with 2304 additions and 532 deletions

View File

@@ -1,27 +1,31 @@
services:
app:
image: node:20-alpine
mb-grid-app:
image: node:20
working_dir: /app
# Use pnpm since the project uses it, and run the next dev script directly
command: sh -c "corepack enable pnpm && pnpm i && pnpm dev:next"
volumes:
- .:/app
- mb-grid-node-modules:/app/node_modules
ports:
- "3000:3000"
command: sh -c "corepack enable pnpm && pnpm install && pnpm dev:next"
environment:
NODE_ENV: development
DATABASE_URI: postgresql://postgres:postgres@mb-grid-db:5432/payload
# Build / dependency installation
GATEKEEPER_ORIGIN: ${GATEKEEPER_ORIGIN}
COOKIE_DOMAIN: ${COOKIE_DOMAIN}
NEXT_PUBLIC_BASE_URL: ${NEXT_PUBLIC_BASE_URL}
NPM_TOKEN: ${NPM_TOKEN}
CI: 'true'
# ports:
# - "3000:3000"
labels:
- "traefik.enable=true"
# Clear all production-related TLS/Middleware settings for the main routers
- "traefik.http.routers.${PROJECT_NAME:-mb-grid-solutions}.entrypoints=web"
- "traefik.http.routers.${PROJECT_NAME:-mb-grid-solutions}.rule=Host(`${TRAEFIK_HOST:-mb-grid-solutions.localhost}`)"
- "traefik.http.routers.${PROJECT_NAME:-mb-grid-solutions}.tls=false"
- "traefik.http.routers.${PROJECT_NAME:-mb-grid-solutions}.middlewares="
# Remove Gatekeeper for local dev simply by not defining it or overwriting?
# Actually, gatekeeper is a separate service. We can keep it or ignore it.
# But the app router normally points to gatekeeper middleware.
# By clearing middlewares above, we bypass gatekeeper for local dev.
- "caddy=http://mb-grid-solutions.localhost"
- "caddy.reverse_proxy=mb-grid-app:3000"
networks:
- default
- infra
networks:
default:
name: mb-grid-solutions-internal
infra:
external: true
volumes:
mb-grid-node-modules: