Files
Zack SheppardandClaude Opus 5.5 0568df501a Host the website on Cloudflare Workers
- 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>
2026-10-07 09:57:52 +01:00

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"),
},
},
},
});