Skip to content

Commit 0c911bf

Browse files
committed
chore: 將測試密鑰變更為 ZSEND_WEBHOOKS_SECRET,更新相關配置
1 parent dacf6f1 commit 0c911bf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

vitest.config.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import { cloudflareTest } from "@cloudflare/vitest-pool-workers";
22
import { defineConfig } from "vitest/config";
3-
import { TEST_SECRET_KEY } from "./test/constants";
3+
import { TEST_ZSEND_WEBHOOKS_SECRET } from "./test/constants";
44

5-
process.env.SECRET_KEY ??= TEST_SECRET_KEY;
5+
process.env.ZSEND_WEBHOOKS_SECRET ??= TEST_ZSEND_WEBHOOKS_SECRET;
66

77
export default defineConfig({
88
plugins: [
99
cloudflareTest({
1010
wrangler: { configPath: "./wrangler.jsonc" },
1111
miniflare: {
1212
bindings: {
13-
SECRET_KEY: TEST_SECRET_KEY,
13+
ZSEND_WEBHOOKS_SECRET: TEST_ZSEND_WEBHOOKS_SECRET,
1414
},
1515
},
1616
}),

0 commit comments

Comments
 (0)