Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion setups/next-node/scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { bot } from '../src/bot'

const {
VERCEL_URL: host,
VERCEL_URL: defaultHost,
VERCEL_BRANCH_URL: host = defaultHost,
// set your webhook address or use default Vercel deployment url
WEBHOOK: webhook = `https://${host}/api/webhook`,
} = process.env
Expand Down
3 changes: 2 additions & 1 deletion setups/vercel-edge-runtime/scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { bot } from '../src/bot'

const {
VERCEL_URL: host,
VERCEL_URL: defaultHost,
VERCEL_BRANCH_URL: host = defaultHost,
// set your webhook address or use default Vercel deployment url
WEBHOOK: webhook = `https://${host}/api/webhook`,
} = process.env
Expand Down
3 changes: 2 additions & 1 deletion setups/vercel-serverless-bun/scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { bot } from '../src/bot'

const {
VERCEL_URL: host,
VERCEL_URL: defaultHost,
VERCEL_BRANCH_URL: host = defaultHost,
// set your webhook address or use default Vercel deployment url
WEBHOOK: webhook = `https://${host}/`,
} = process.env
Expand Down
3 changes: 2 additions & 1 deletion setups/vercel-serverless-node/scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { bot } from '../src/bot'

const {
VERCEL_URL: host,
VERCEL_URL: defaultHost,
VERCEL_BRANCH_URL: host = defaultHost,
// set your webhook address or use default Vercel deployment url
WEBHOOK: webhook = `https://${host}/api/webhook`,
} = process.env
Expand Down