Open
Description
Hello @ericallam 👋
I wanted to take a look at this and started playing with the project, but couldn't get it set up...
I didn't want to open an issue simply for this; but maybe you can just point me in the right direction without much trouble 🙇♀️
I basically simply followed the procedure indicated in DEVELOPMENT.md, created my .env
file:
I could run all the tests, perform npm run dev
, it all works fine... until npm start
:
[1] [mf:err] C:\Users\Patricia\git\jsonhero-web\dist\worker.js:54468
[1] var sessionSecret = SESSION_SECRET;
[1] ^
[1]
[1] ReferenceError: SESSION_SECRET is not defined
[1] at C:\Users\Patricia\git\jsonhero-web\app\theme.server.ts:5:23
[1] at C:\Users\Patricia\git\jsonhero-web\dist\worker.js:106223:3
[1] at Script.runInContext (node:vm:139:12)
[1] at VMScriptRunner.runAsScript (C:\Users\Patricia\git\jsonhero-web\node_modules\@miniflare\runner-vm\src\index.ts:25:12)
[1] at VMScriptRunner.run (C:\Users\Patricia\git\jsonhero-web\node_modules\@miniflare\runner-vm\src\index.ts:84:12)
[1] at EventTarget.#reload (C:\Users\Patricia\git\jsonhero-web\node_modules\@miniflare\core\src\index.ts:775:42)
[1] at EventTarget.getPlugins (C:\Users\Patricia\git\jsonhero-web\node_modules\@miniflare\core\src\index.ts:1017:5)
[1] at createServer (C:\Users\Patricia\git\jsonhero-web\node_modules\@miniflare\http-server\src\index.ts:369:19)
[1] at startServer (C:\Users\Patricia\git\jsonhero-web\node_modules\@miniflare\http-server\src\index.ts:476:18)
[1] at main (C:\Users\Patricia\git\jsonhero-web\node_modules\miniflare\src\cli.ts:111:7)
[1] [mf:err] Unhandled Promise Rejection: C:\Users\Patricia\git\jsonhero-web\dist\worker.js:54468
[1] var sessionSecret = SESSION_SECRET;
[1] ^
Why isn't it picking up my .env
file? What am I doing wrong?
OS: Windows 10
Metadata
Metadata
Assignees
Labels
No labels