feat: Installable PWA (#1882)
This commit is contained in:
@ -67,6 +67,8 @@ router.get("/_health", (ctx) => (ctx.body = "OK"));
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
router.get("/static/*", async (ctx) => {
|
||||
ctx.set({
|
||||
"Service-Worker-Allowed": "/",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Cache-Control": `max-age=${356 * 24 * 60 * 60}`,
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user