feat:移除了弹窗,服务器添加sls

This commit is contained in:
2026-09-08 22:39:45 +08:00
commit 6a295f9a7a
4082 changed files with 1322534 additions and 0 deletions

View File

@ -0,0 +1,26 @@
import { defineWorkersConfig, readD1Migrations } from '@cloudflare/vitest-pool-workers/config'
const migrations = await readD1Migrations('./migrations')
export default defineWorkersConfig({
test: {
setupFiles: ['./test/setup.ts'],
poolOptions: {
workers: {
main: './src/index.ts',
singleWorker: true,
miniflare: {
compatibilityDate: '2025-08-13',
d1Databases: ['DB'],
bindings: {
INSTALLATION_HMAC_SECRET: 'test-only-secret-that-is-longer-than-thirty-two-bytes',
INGEST_ENABLED: 'true',
MAX_BATCHES_PER_INSTALLATION_PER_DAY: '25',
MAX_ACCEPTED_BATCHES_PER_DAY: '100000',
TEST_MIGRATIONS: migrations,
},
},
},
},
},
})