Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ninja03 committed Feb 25, 2024
1 parent 610c248 commit 19f3b26
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,12 @@ import "$std/dotenv/load.ts";
import { start } from "$fresh/server.ts";
import manifest from "./fresh.gen.ts";
import config from "./fresh.config.ts";
import { startCron } from "./cron.ts";

const isBuildMode = Deno.args.includes("build");
if (!isBuildMode) {
// cronの処理はこちら
startCron();
}

await start(manifest, config);

0 comments on commit 19f3b26

Please sign in to comment.