Revert "refactor: use --env CLI arg" (#2212)

Reverts denoland/fresh#2204

The `--env` flag cannot be used by default because it fails when no
`.env` file is present. Therefore this PR accidentally introduced a
breaking change.
This commit is contained in:
Marvin Hagemeister
2024-01-04 11:53:15 +01:00
committed by GitHub
parent f95df1d7b7
commit 8c4385043c
14 changed files with 22 additions and 14 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ Here's what the diff of `deno.json` looks like:
{
"lock": false,
"tasks": {
- "start": "deno run -A --watch=static/,routes/ --env dev.ts"
+ "start": "deno run -A --watch=src/static/,src/routes/ --env src/dev.ts"
- "start": "deno run -A --watch=static/,routes/ dev.ts"
+ "start": "deno run -A --watch=src/static/,src/routes/ src/dev.ts"
},
"imports": {
"$fresh/": "file:///Users/reed/code/fresh/",
+2
View File
@@ -13,6 +13,8 @@ you'll end up with a `main.ts` like the following:
/// <reference lib="dom.asynciterable" />
/// <reference lib="deno.ns" />
import "$std/dotenv/load.ts";
import { start } from "$fresh/server.ts";
import manifest from "./fresh.gen.ts";
import config from "./fresh.config.ts";