✅ Complete Astro migration - PDPA compliant website
- Migrated all pages from Next.js to Astro - Added PDPA-compliant Privacy Policy (Thai) - Added PDPA-compliant Terms & Conditions (Thai) - Added Cookie Policy with disclosure (Thai) - Implemented cookie consent banner (client-side) - Integrated Umami Analytics placeholder - Blog system with 3 posts - Optimized Docker configuration for production - Static site build (184KB, 11 pages) - Ready for Easypanel deployment Backup: /Users/kunthawatgreethong/Gitea/dealplustech-backup-nextjs-20260309.tar.gz
This commit is contained in:
21
dealplustech-astro/node_modules/@astrojs/node/dist/shared.js
generated
vendored
Normal file
21
dealplustech-astro/node_modules/@astrojs/node/dist/shared.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import path from "node:path";
|
||||
import url from "node:url";
|
||||
import { appendForwardSlash } from "@astrojs/internal-helpers/path";
|
||||
const STATIC_HEADERS_FILE = "_experimentalHeaders.json";
|
||||
function resolveClientDir(options) {
|
||||
const clientURLRaw = new URL(options.client);
|
||||
const serverURLRaw = new URL(options.server);
|
||||
const rel = path.relative(url.fileURLToPath(serverURLRaw), url.fileURLToPath(clientURLRaw));
|
||||
const serverFolder = path.basename(options.server);
|
||||
let serverEntryFolderURL = path.dirname(import.meta.url);
|
||||
while (!serverEntryFolderURL.endsWith(serverFolder)) {
|
||||
serverEntryFolderURL = path.dirname(serverEntryFolderURL);
|
||||
}
|
||||
const serverEntryURL = serverEntryFolderURL + "/entry.mjs";
|
||||
const clientURL = new URL(appendForwardSlash(rel), serverEntryURL);
|
||||
return url.fileURLToPath(clientURL);
|
||||
}
|
||||
export {
|
||||
STATIC_HEADERS_FILE,
|
||||
resolveClientDir
|
||||
};
|
||||
Reference in New Issue
Block a user