pluvial / svelte-adapter-deno

A SvelteKit adapter for Deno
https://svelte-adapter-deno.deno.dev/
MIT License
313 stars 14 forks source link

Environment variables ($env/static/private) #43

Closed r-moore closed 9 months ago

r-moore commented 1 year ago

SvelteKit supports loading environment variables by importing from $env, but these don't seem to work on Deno Deploy

Maybe because deno uses Deno.env rather than import.meta.env so the adapter would need to translate any references?

205g0 commented 1 year ago

@jpaquim any news on this?

happysalada commented 12 months ago

also interested.

Peyman-Borhani commented 12 months ago

@r-moore @205g0 This might be useful: https://github.com/denoland/deno/issues/17248#issuecomment-1634413871

benmccann commented 10 months ago

You could take a look at what this other Deno adapter does: https://github.com/dbushell/sveltekit-adapter-deno/blob/1cc7abd1699c0e978728848f8cc52e41d73228bf/files/mod.ts#L6