diff --git a/.gitignore b/.gitignore index 00b0b43..9c040e7 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,10 @@ blob-report/ # Local agent planning state; project-level skills in .agents remain versioned. .hermes/ output/ + +# wrangler files +.wrangler +.dev.vars* +!.dev.vars.example +.env* +!.env.example diff --git a/astro.config.ts b/astro.config.ts index 3ac992e..9f96aec 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -6,9 +6,11 @@ import { siteDiscovery } from "./src/data/site-discovery.ts"; export default defineConfig({ site: siteDiscovery.origin, output: "static", + build: { inlineStylesheets: "always" }, + integrations: [ sitemap(), seoGraph({ @@ -22,6 +24,7 @@ export default defineConfig({ validateInternalLinks: true }) ], + fonts: [ { provider: fontProviders.local(), diff --git a/package.json b/package.json index 634019c..a74faba 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "astro dev", "build": "astro build", - "preview": "astro preview", + "preview": "wrangler dev", "fonts:check": "nub scripts/check-font-glyphs.ts", "fonts:update": "nub scripts/update-local-fonts.ts", "check": "astro check", @@ -14,7 +14,8 @@ "lighthouse": "node scripts/run-lighthouse.mjs", "lighthouse:check": "node scripts/run-lighthouse.mjs --check", "test:e2e": "playwright test", - "verify": "pnpm fonts:check && pnpm check && pnpm lint && pnpm format:check && pnpm test:e2e" + "verify": "pnpm fonts:check && pnpm check && pnpm lint && pnpm format:check && pnpm test:e2e", + "deploy": "pnpm build && wrangler deploy" }, "dependencies": { "astro": "7.1.1" diff --git a/wrangler.jsonc b/wrangler.jsonc new file mode 100644 index 0000000..0787940 --- /dev/null +++ b/wrangler.jsonc @@ -0,0 +1,9 @@ +{ + "$schema": "./node_modules/wrangler/config-schema.json", + "name": "matharts-website", + "compatibility_date": "2026-07-19", + "assets": { + "directory": "./dist", + "not_found_handling": "404-page" + } +}