Comments (3)
Thanks for letting me know. Appreciate it.
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/[email protected]/dotenv/load.ts"; // << Add.
import dev from "$fresh/dev.ts";
await dev(import.meta.url, "./main.ts");
We believe these are the best ways to address this issue.
from fresh-session.
It has worked, thank you very much.
from fresh-session.
If there is no problem with this method of response, please let us know so we can close this issue.
(Due date 10/1/2023)
from fresh-session.
Related Issues (20)
- "Headers are immutable" Error when implementing oAuth2 HOT 3
- Regist letest version(0.1.9) to deno.land/x HOT 2
- Pinned `[email protected]` version causing some problems when running `deno cache` HOT 2
- Tryal version use Deno.kv. HOT 2
- add support for user-land session implementation HOT 3
- WithSession is not exported from mod.ts
- Session fixation attack prevention HOT 2
- Type 'Redis' is not assignable to parameter of type 'Store'. HOT 1
- 0.2.1 examples broken due to missing WithSession HOT 3
- Can we have a new release? HOT 3
- Pluginize
- Max Session Size HOT 1
- Update Next version.
- Possibility to reduce learning curve? HOT 2
- Error on deno deploy HOT 4
- Setting the secret key (APP_KEY)
- Add an option to hide the console logs from deno_kv_store
- Improve session typing
- Add documentation for Redis Store with example HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fresh-session.