konfigurasi tambahan sebelum deploy
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ app.all("/api/*", (c) => c.json({ error: "Not Found" }, 404));
|
|||||||
|
|
||||||
export default app;
|
export default app;
|
||||||
|
|
||||||
if (env.isProduction) {
|
if (env.isProduction && typeof process !== "undefined" && process.versions?.node) {
|
||||||
const { serve } = await import("@hono/node-server");
|
const { serve } = await import("@hono/node-server");
|
||||||
const { serveStaticFiles } = await import("./lib/vite");
|
const { serveStaticFiles } = await import("./lib/vite");
|
||||||
serveStaticFiles(app);
|
serveStaticFiles(app);
|
||||||
|
|||||||
@@ -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/*"]
|
||||||
Reference in New Issue
Block a user