I'm trying to make hyperdrive work in a svelte-kit project that uses drizzle. All the examples of hy

I'm trying to make hyperdrive work in a svelte-kit project that uses drizzle. All the examples of hyperdrive usage I could find get
env
in the request, but in my project drizzle configuration is defined in a separate file:
const client = postgres(process.env.db || DATABASE_URL, {
  ssl: DATABASE_SSL === 'true',
  prepare: false
});

export const db = drizzle(client, { schema });


I tried to use process.env, but got no luck here. Can anyone please suggest the proper way to pass the hyperdrive url?
Was this page helpful?