Files
c53a5a741b Add DNS analytics server ( Copy over from !121 ) (#126)
* Add dns analytic mcp.

* Add zone list call.

* Format code and update README.

* Rebase and prepare for oauth scope.

* Update wrangler.jsonc for staging and dev env.
Add UserDetails binding for active account id.

* Address comments.

* Address comments.

* Add TODOs.

* t

* Linting fixes + add scopes

* Use MCP common zones_list tool

---------

Co-authored-by: axia <[email protected]>
2025-05-01 08:48:08 -05:00

23 lines
527 B
TypeScript

import { defineWorkersConfig } from '@cloudflare/vitest-pool-workers/config'
export interface TestEnv extends Env {
CLOUDFLARE_MOCK_ACCOUNT_ID: string
CLOUDFLARE_MOCK_API_TOKEN: string
}
export default defineWorkersConfig({
test: {
poolOptions: {
workers: {
wrangler: { configPath: `${__dirname}/wrangler.jsonc` },
miniflare: {
bindings: {
CLOUDFLARE_MOCK_ACCOUNT_ID: 'mock-account-id',
CLOUDFLARE_MOCK_API_TOKEN: 'mock-api-token',
} satisfies Partial<TestEnv>,
},
},
},
},
})