Serve with Node/Express instead of nginx (matches working astroreal pattern)

- Add server.js: Express serves dist/ + injects env (GA_ID, FORM_EMAIL, GMAP) at runtime
- Container port now 4321 (identical to moreminimore-astroreal that deploys on EasyPanel)
- Remove nginx.conf + entrypoint.sh (no longer needed); Dockerfile uses node server.js
- Verified: pnpm build + node server.js -> all 40 pages serve 200, env injected, 0 leftovers
This commit is contained in:
2026-08-06 15:13:39 +07:00
parent a8fa17a947
commit 44c405730e
9 changed files with 713 additions and 182 deletions

View File

@@ -1,7 +1,8 @@
{
"name": "stale-satellite",
"name": "mitsu-chaiyaporn",
"type": "module",
"version": "0.0.1",
"version": "1.0.0",
"private": true,
"engines": {
"node": ">=22.12.0"
},
@@ -9,9 +10,11 @@
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"start": "node server.js",
"astro": "astro"
},
"dependencies": {
"astro": "^7.1.6"
"astro": "^7.1.6",
"express": "^5.2.1"
}
}
}