Time capsule for miketarpey.com. We've come a long way since 2006...
- Run
npm install
after cloning npm run dev
to test locally- Build a static site for S3 deployment by installing the static adapter:
npm i -D @sveltejs/adapter-static
(code added tosvelte.config.js
and the root+layout.js
) npm run build
to compile static siteaws s3 cp source destination
to update S3 (for now)
- "Greener" code
- Looked at zola, didn't quite fit (reliance on Markdown)
- Lots of
url_for
rewrites - Made routing better (nested folders); one html file for many awards. Tutorial was great here.
- Templates -> reusable components
- 500MB Docker container -> instant static pages
- static adapter
- S3 config (updating infra, trailing slash)
- No capitalized tags allowed!
- Component refactors into
lib
- Figuring out styling
- SEOally
- HTTP redirect loop!? https://developers.cloudflare.com/ssl/troubleshooting/too-many-redirects/#encryption-mode-misconfigurations
- Prevent bounce with this and this
- TODO make sure analytics are off