From 3cff11317d33da8b649c64aec3cb04df30616a26 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sun, 22 Oct 2023 12:07:10 -0400 Subject: Move serving logic to a .zip file, move static assets to S3 (#734) * lume/src/static: remove these files because we don't need them Also rename manifest.json to site.webmanifest because apparently that's the best practice. Signed-off-by: Xe Iaso * lume: fix deno lock Signed-off-by: Xe Iaso * lume/src/_components: small fixes Signed-off-by: Xe Iaso * lume: move this big file to S3 Signed-off-by: Xe Iaso * lume: move these static files to XeDN Signed-off-by: Xe Iaso * internal/lume: store and serve the website from a .zip file This will let the website continue to serve data while a rebuild is happening. This also lets me download the website corpus for local debugging should the worst happen. Signed-off-by: Xe Iaso --------- Signed-off-by: Xe Iaso --- cmd/xesite/main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd') diff --git a/cmd/xesite/main.go b/cmd/xesite/main.go index ff4c92e..daf831e 100644 --- a/cmd/xesite/main.go +++ b/cmd/xesite/main.go @@ -109,6 +109,10 @@ func main() { http.Redirect(w, r, "/blog/xn--ts9h/", http.StatusMovedPermanently) }) + mux.HandleFunc("/static/manifest.json", func(w http.ResponseWriter, r *http.Request) { + http.Redirect(w, r, "/static/site.webmanifest", http.StatusMovedPermanently) + }) + if *devel { mux.HandleFunc("/.within/hook/github", func(w http.ResponseWriter, r *http.Request) { if err := fs.Update(r.Context()); err != nil { -- cgit v1.2.3