Skip to content

Commit

Permalink
fix(config): enable dotenv in development (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmarrec authored Jul 15, 2022
1 parent 4d38c50 commit ec086c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export async function loadOptions (userConfig: NitroConfig = {}): Promise<NitroO
name: 'nitro',
defaults: NitroDefaults,
cwd: userConfig.rootDir,
dotenv: userConfig.dev,
resolve (id: string) {
type PT = Map<String, NitroConfig>
let matchedPreset = (PRESETS as any as PT)[id] || (PRESETS as any as PT)[camelCase(id)]
Expand Down

0 comments on commit ec086c6

Please sign in to comment.