denoland / deno-astro-adapter

A Deno adapter for running Astro applications on the Deno runtime.
https://npm.im/@deno/astro-adapter
MIT License
84 stars 19 forks source link

How to store and use secrets #20

Open aurelius-coffee opened 6 months ago

aurelius-coffee commented 6 months ago

Hi, I want to use the deno adapter and deno deploy alongside turso db. How do I store the environment variables necessary? By default .env variables get embedded into the build. It seems to me it'd be wiser to have them in the deployment environment instead. Can we do that somehow?

ASD=111

ASD=123 pnpm run build results in FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

do we use import.meta.env or ?