konfigurasi tambahan sebelum deploy

This commit is contained in:
2026-06-03 11:37:34 +07:00
parent 63c5d0a11f
commit 94b786d09a
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ app.all("/api/*", (c) => c.json({ error: "Not Found" }, 404));
export default app;
if (env.isProduction) {
if (env.isProduction && typeof process !== "undefined" && process.versions?.node) {
const { serve } = await import("@hono/node-server");
const { serveStaticFiles } = await import("./lib/vite");
serveStaticFiles(app);
+9
View File
@@ -0,0 +1,9 @@
name = "webgispemetaankemiskinan"
main = "api/boot.ts"
compatibility_date = "2024-03-01"
compatibility_flags = [ "nodejs_compat" ]
[assets]
directory = "./dist/public"
not_found_handling = "single-page-application"
run_worker_first = ["/api/*"]