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:
Kunthawat Greethong
2026-03-03 11:40:50 +07:00
parent f972f68875
commit 443c3377e2
10383 changed files with 4019 additions and 19183 deletions

View File

@@ -0,0 +1,24 @@
import type { AssertionNode, CharacterNode, Node } from '../../parser/parse.js';
import type { Visitor } from '../../traverser/traverse.js';
/**
Extract nodes at the start of every alternative into a prefix.
Ex: `^aa|^abb|^ac` -> `^a(?:a|bb|c)`.
Also works within groups.
*/
declare const extractPrefix: Visitor;
declare function isAllowedSimpleNode(node: Node): node is AssertionNode | CharacterNode | {
type: "CharacterSet";
kind: "posix" | "property";
value: string;
negate: boolean;
variableLength?: never;
} | {
type: "CharacterSet";
kind: Exclude<import("../../parser/parse.js").NodeCharacterSetKind, "posix" | "property">;
value?: never;
negate?: boolean;
variableLength?: boolean;
};
declare function isNodeEqual(a: Node, b: Node): boolean;
export { extractPrefix, isAllowedSimpleNode, isNodeEqual, };
//# sourceMappingURL=extract-prefix.d.ts.map