-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.toml
More file actions
35 lines (31 loc) · 1.37 KB
/
wrangler.toml
File metadata and controls
35 lines (31 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# SPDX-FileCopyrightText: 2026 The Linux Foundation
#
# SPDX-License-Identifier: Apache-2.0
name = "github-action-gate"
main = "dist-worker/worker.js"
compatibility_date = "2024-11-01"
# Enable the Node.js compatibility layer so that Node built-ins (crypto,
# stream, etc.) work inside the Worker runtime.
compatibility_flags = ["nodejs_compat"]
# ── D1 Database ──────────────────────────────────────────────────────────────
# 1. Create the database: npm run d1:create
# 2. Paste the resulting database_id below.
# 3. Apply migrations: npm run d1:migrate:local (local)
# npm run d1:migrate:remote (production)
[[d1_databases]]
binding = "DB" # accessed in Worker code as env.DB
database_name = "action-gate"
database_id = "932750ff-2ecd-4a31-a427-f72494d20e12"
# ── Environment variables ────────────────────────────────────────────────────
[vars]
NODE_ENV = "production"
PORT = "3000"
# Secrets — set with `wrangler secret put <NAME>` (never commit values here):
# APP_ID
# PRIVATE_KEY
# WEBHOOK_SECRET
# GITHUB_CLIENT_ID
# GITHUB_CLIENT_SECRET
# API_BASE_URL
# DASHBOARD_URL
# CORS_ORIGINS