You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// app.d.ts// See https://kit.svelte.dev/docs/types#app// for information about these interfacesdeclare global {namespaceApp{// interface Error {}// interface Locals {}// interface PageData {}interfacePlatform{env: {DB: D1Database;};context: {// eslint-disable-next-line @typescript-eslint/no-explicit-anywaitUntil(promise: Promise<any>): void;};caches: CacheStorage&{default: Cache};}}}export{};
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I'm using
Sveltekit 1.24.0
.https://developers.cloudflare.com/d1/examples/d1-and-sveltekit
Referring to the above page, I set the following values for Platform in app.d.ts, but when I check platform in the load function, it is undefined.
What could cause the
platform
to be undefined?Beta Was this translation helpful? Give feedback.
All reactions