refactor: un-feature-gate static content hosting depending on deployment env

This commit is contained in:
Ritesh Ghosh
2025-05-26 00:03:58 +05:30
parent e108ce6a4e
commit 113945c53a
+3 -3
View File
@@ -41,9 +41,9 @@ if (isPersonalDeployment) {
app.use(ratelimit); app.use(ratelimit);
} }
if (env.ANIWATCH_API_DEPLOYMENT_ENV === DeploymentEnv.NODEJS) { // if (env.ANIWATCH_API_DEPLOYMENT_ENV === DeploymentEnv.NODEJS) {
app.use("/", serveStatic({ root: "public" })); app.use("/", serveStatic({ root: "public" }));
} // }
app.get("/health", (c) => c.text("daijoubu", { status: 200 })); app.get("/health", (c) => c.text("daijoubu", { status: 200 }));
app.get("/v", async (c) => app.get("/v", async (c) =>