Environment variables ($env/static/private)
r-moore opened this issue · comments
Richard Moore commented
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?
Yt commented
also interested.
Peyman Borhani commented
@r-moore @205g0
This might be useful:
denoland/deno#17248 (comment)
Ben McCann commented
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