-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.d.ts
More file actions
40 lines (37 loc) · 1.26 KB
/
env.d.ts
File metadata and controls
40 lines (37 loc) · 1.26 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
36
37
38
39
40
/// <reference path="../.astro/actions.d.ts" />
/// <reference types="astro/client" />
/// <reference types="@clerk/astro/env" />
type D1Database = import("@cloudflare/workers-types").D1Database
type DurableObjectNamespace =
import("@cloudflare/workers-types").DurableObjectNamespace
type BILLING_DURABLE_OBJECT =
import("billing-durable-object").BillingDurableObject
type ENV = {
CLOUDFLARE_ACCOUNT_ID: string
CLOUDFLARE_API_TOKEN: string
CF_ANALYTICS_API_TOKEN: string
CF_DISPATCH_NAMESPACE: string
DISPATHER_HOSTNAME: string
GITHUB_APP_NAME: string
GITHUB_CLIENT_ID: string
GITHUB_CLIENT_SECRET: string
GITHUB_ACCESS_TOKEN: string
GITHUB_WEBHOOK_SECRET: string
STRIPE_TOPUP_PRICE_ID: string
STRIPE_SECRET_KEY: string
PUBLIC_CLERK_PUBLISHABLE_KEY: string
CLERK_SECRET_KEY: string
BILLING_DURABLE_OBJECT: DurableObjectNamespace<BillingDurableObject>
DB: D1Database
}
type Runtime = import("@astrojs/cloudflare").Runtime<ENV>
// https://github.com/withastro/astro/issues/7394#issuecomment-1975657601
declare namespace App {
interface Locals extends Runtime {
github: import("arctic").GitHub
lucia: import("lucia").Lucia
session: import("lucia").Session | null
user: import("lucia").User | null
db: import("@/lib/db").DB
}
}