- Removed Next.js project (src, app, components, etc.) - Moved Astro from dealplustech-astro/ to root - Updated Dockerfile for Astro root deployment - All PDPA compliance features preserved: * Cookie consent banner * Consent logging API with SQLite * Admin dashboard (/admin/consent-logs) * Privacy Policy (Thai, PDPA-compliant) * Terms & Conditions (Thai) - 15 pages: homepage, 6 products, 3 blog posts, legal pages, admin - Build: 660ms, all pages generated successfully
15 lines
265 B
TOML
15 lines
265 B
TOML
# Nixpacks Configuration for Astro
|
|
# https://nixpacks.com/docs/configuration/file
|
|
|
|
[phases.setup]
|
|
nixPkgs = ["nodejs-20_x"]
|
|
|
|
[phases.install]
|
|
cmds = ["npm ci"]
|
|
|
|
[phases.build]
|
|
cmds = ["npm run build"]
|
|
|
|
[start]
|
|
cmd = "npm run preview -- --host 0.0.0.0 --port $PORT"
|