mirror of
https://github.com/travelerdev/frameloader.git
synced 2026-10-27 05:02:35 +01:00
- wrangler.jsonc at the repo root: a static-assets Worker serving apps/web/dist on www.frameloader.com, workers.dev off, previews on - _headers with a strict CSP, security headers and immutable caching for hashed assets; a 404 page - Root-absolute asset paths and the clean /terms URL (app links too) - Wrangler as a root dev dependency, with preview:web and deploy:web - README section with the Workers Builds settings Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
543 B
JavaScript
20 lines
543 B
JavaScript
import { defineConfig } from "vite";
|
|
import { resolve } from "node:path";
|
|
|
|
export default defineConfig({
|
|
// Served from the root of www.frameloader.com; absolute URLs keep the 404 page working at any depth.
|
|
base: "/",
|
|
server: { port: 5180 },
|
|
build: {
|
|
outDir: "dist",
|
|
assetsInlineLimit: 0,
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(import.meta.dirname, "index.html"),
|
|
terms: resolve(import.meta.dirname, "terms.html"),
|
|
notFound: resolve(import.meta.dirname, "404.html"),
|
|
},
|
|
},
|
|
},
|
|
});
|