refactor: Move Astro to root, use PORT env (default 80), allow all hosts
- Move Astro files from dealplustech-astro/ to project root - Update Dockerfile: PORT environment variable (default 80) - Add vite.config.ts with allowedHosts: true - Matches nixpacks behavior for Easypanel deployment - No hardcoded ports or domains
This commit is contained in:
8
node_modules/astro/dist/vite-plugin-astro-server/util.js
generated
vendored
Normal file
8
node_modules/astro/dist/vite-plugin-astro-server/util.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { isCSSRequest } from "vite";
|
||||
const rawRE = /(?:\?|&)raw(?:&|$)/;
|
||||
const inlineRE = /(?:\?|&)inline\b/;
|
||||
const isBuildableCSSRequest = (request) => isCSSRequest(request) && !rawRE.test(request) && !inlineRE.test(request);
|
||||
export {
|
||||
isBuildableCSSRequest,
|
||||
isCSSRequest
|
||||
};
|
||||
Reference in New Issue
Block a user