Skip to content

Serve fxcss.com as static pages - #104

Merged
adamXbot merged 3 commits into
websitefrom
feat/website-static-pages
Nov 10, 2026
Merged

adamXbot merged 3 commits into
websitefrom
feat/website-static-pages

Conversation

@adamXbot

@adamXbot adamXbot commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

  • Every page is built to a static file (output: 'export') and the deploy publishes only those files, so no site code runs per request.
  • The per-request script nonce is gone. public/_headers sets the Content Security Policy for every page. It allows inline scripts and limits where scripts can load from.
  • Old addresses redirect from public/_redirects, robots.txt and sitemap.xml are files, and /docs?path= is read in the browser.
  • The deploy config is now wrangler.static.jsonc, and the Cloudflare Vite plugin is removed.
  • /open, README.md and DEPLOYMENT.md describe the new setup.
  • scripts/check-site.mjs can be run against the live domain as well as a local build.

Before deploying

Verify both Cloudflare settings in DEPLOYMENT.md before publishing.

  • Always Use HTTPS is enabled to redirect HTTP requests to HTTPS.
  • The www redirect sends HTTPS requests for www.fxcss.com to https://fxcss.com, preserving the path and query string.

How to test

just check
just build
just preview
just verify
just browser

After deploying, run just verify https://fxcss.com and confirm in a browser that a page view reaches Simple Analytics.

🤖 Generated with Claude Code

adamXbot and others added 3 commits November 10, 2026 21:04
Build every page to a file and publish only those files, so no site code
runs per request. Security headers move to public/_headers, old addresses
to public/_redirects, and /docs?path= is now read in the browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm 10, which ships with Node 22.18, rejected the lockfile once miniflare
was reached only through wrangler. A top-level override pins the same
version on npm 10 and 11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamXbot
adamXbot merged commit db4772d into website Nov 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant