mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-18 06:35:15 +00:00
Replace Astro/Strapi site with Next.js static export
- Fresh structure: Next.js App Router + Tailwind v4 at the repo root, exported as static files (output: export) and served by static-web-server - Remove the Strapi CMS, Astro app, Pagefind search, comments, old scripts, Lighthouse config and compose files; content in content/ is now plain markdown with YAML frontmatter - Pages: About, Writing, Reading (3D bookshelf) and Portfolio, styled after adammaj.com - SEO: metadata and canonicals, JSON-LD, generated OG images, sitemap, robots, RSS and JSON feeds, llms.txt - Umami via PUBLIC_UMAMI_SCRIPT_URL / PUBLIC_UMAMI_WEBSITE_ID (build args) - Dockerfile builds the export and serves it with sws.toml (security headers, clean URLs, .well-known, OG image content type, immutable asset caching) - Prettier and cspell for content with a husky/lint-staged pre-commit hook - Old redirect list dropped to start from a clean slate
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
[general]
|
||||
page404 = "./404.html"
|
||||
# Next exports /writing as writing.html, so serve it without forcing a trailing slash.
|
||||
redirect-trailing-slash = false
|
||||
# Serve /.well-known (PGP key, security.txt).
|
||||
ignore-hidden-files = false
|
||||
|
||||
[advanced]
|
||||
|
||||
@@ -13,115 +17,14 @@ Referrer-Policy = "strict-origin-when-cross-origin"
|
||||
Permissions-Policy = "camera=(), microphone=(), geolocation=(), interest-cohort=()"
|
||||
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/security.txt"
|
||||
destination = "/.well-known/security.txt"
|
||||
kind = 301
|
||||
# Generated social images are exported without a file extension.
|
||||
[[advanced.headers]]
|
||||
source = "**/opengraph-image"
|
||||
[advanced.headers.headers]
|
||||
Content-Type = "image/png"
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/index.xml"
|
||||
destination = "/rss.xml"
|
||||
kind = 301
|
||||
|
||||
# BEGIN migrated-posts-redirects (generated by scripts/migrate-posts-to-writings.mjs)
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/a-fresh-coat-of-paint/"
|
||||
destination = "/writings/a-fresh-coat-of-paint/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/file-over-app/"
|
||||
destination = "/writings/file-over-app/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/from-c-to-machine-code/"
|
||||
destination = "/writings/from-c-to-machine-code/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/generate-django-secret-key/"
|
||||
destination = "/writings/generate-django-secret-key/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/hello-world/"
|
||||
destination = "/writings/hello-world/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/inertia/"
|
||||
destination = "/writings/inertia/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/install-postgresql-15-on-arch-manjaro-garuda-linux/"
|
||||
destination = "/writings/install-postgresql-15-on-arch-manjaro-garuda-linux/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/integrating-netlify/"
|
||||
destination = "/writings/integrating-netlify/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/javascript-exporting-modules/"
|
||||
destination = "/writings/javascript-exporting-modules/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/mmuctf2025/"
|
||||
destination = "/writings/mmuctf2025/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/obsidian-sync/"
|
||||
destination = "/writings/obsidian-sync/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/scriptctf2025/"
|
||||
destination = "/writings/scriptctf2025/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/self-hosting-gitea-and-mirroring-github/"
|
||||
destination = "/writings/self-hosting-gitea-and-mirroring-github/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/semantic-version-and-conventional-commits/"
|
||||
destination = "/writings/semantic-version-and-conventional-commits/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/subresource-integrity/"
|
||||
destination = "/writings/subresource-integrity/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/the-single-byte-that-kills-your-exploit-understanding-endianness/"
|
||||
destination = "/writings/the-single-byte-that-kills-your-exploit-understanding-endianness/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/utterances-comments/"
|
||||
destination = "/writings/utterances-comments/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/vuejs-tailwind/"
|
||||
destination = "/writings/vuejs-tailwind/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/what-is-pwn/"
|
||||
destination = "/writings/what-is-pwn/"
|
||||
kind = 301
|
||||
|
||||
[[advanced.redirects]]
|
||||
source = "/posts/wifi-hotspot-arch/"
|
||||
destination = "/writings/wifi-hotspot-arch/"
|
||||
kind = 301
|
||||
|
||||
# END migrated-posts-redirects
|
||||
# Hashed build assets never change.
|
||||
[[advanced.headers]]
|
||||
source = "/_next/static/**"
|
||||
[advanced.headers.headers]
|
||||
Cache-Control = "public, max-age=31536000, immutable"
|
||||
|
||||
Reference in New Issue
Block a user