You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fresh-session was not originally designed to automatically load .env files.
We also do not expect Fresh to read .env files.
Therefore, there are three options that can be taken.
inline
APP_KEY=hoge deno task start
system environment variables
export APP_KEY=hoge
deno task start
dev.ts
#!/usr/bin/env -S deno run -A --watch=static/,routes/
import"https://deno.land/std@0.202.0/dotenv/load.ts";// << Add.importdevfrom"$fresh/dev.ts";awaitdev(import.meta.url,"./main.ts");
We believe these are the best ways to address this issue.
In the latest version of fresh (1.4.3) it does not detect the APP_KEY variable in the .env file.
[FRESH SESSION] Warning: We didn't detect a env variable
APP_KEY
, if you are in production please fix this ASAP to avoid any security issue.The text was updated successfully, but these errors were encountered: