deno run -A --allow-write=./dist.json --check ./build.ts
startInLocal.ts
import { startServer } from "./main.tsx";
startServer({
notionIntegrationSecret: "secret_xxx",
discordWebHookUrl: "https://discord.com/api/webhooks/000/xxx",
});
deno run --unstable --allow-net=:8000,api.notion.com,discord.com --watch --check ./startInLocal.ts
notificationToDiscordInLocal.ts
import { notificationToDiscord } from "./main.tsx";
notificationToDiscord({
notionIntegrationSecret: "secret_xxx",
discordWebHookUrl: "https://discord.com/api/webhooks/000/xxx",
});
deno run --allow-net=api.notion.com,discord.com --check ./notificationToDiscordInLocal.ts