diff options
| author | Xe Iaso <me@christine.website> | 2023-10-22 12:07:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-22 12:07:10 -0400 |
| commit | 3cff11317d33da8b649c64aec3cb04df30616a26 (patch) | |
| tree | 60124b9cb3b4c63009a96e27e4f2bd49b184e707 /cmd/xesite | |
| parent | b888fd5986ab1867515b54d769b705642d2f9e44 (diff) | |
| download | xesite-3cff11317d33da8b649c64aec3cb04df30616a26.tar.xz xesite-3cff11317d33da8b649c64aec3cb04df30616a26.zip | |
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 <me@xeiaso.net>
* lume: fix deno lock
Signed-off-by: Xe Iaso <me@xeiaso.net>
* lume/src/_components: small fixes
Signed-off-by: Xe Iaso <me@xeiaso.net>
* lume: move this big file to S3
Signed-off-by: Xe Iaso <me@xeiaso.net>
* lume: move these static files to XeDN
Signed-off-by: Xe Iaso <me@xeiaso.net>
* 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 <me@xeiaso.net>
---------
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/xesite')
| -rw-r--r-- | cmd/xesite/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |
