Well now it seems like the fact that I have a `preview` and a `production` environment variable has

Well now it seems like the fact that I have a
preview
and a
production
environment variable has made it not work locally inside the svelte kit app this is my app.d.ts
interface Platform {
  env: {
    db: D1Database;
  };
}


and I use it like this:

const db = await drizzle(platform?.env.db, { schema });


I also tried adding a nested
production
variable in both Platform and where I use it: env.production.db but no dice
Was this page helpful?