Skip to content

Commit

Permalink
refactor: do not import env when using sqlite driver
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Nov 27, 2023
1 parent 57cdc39 commit 797957d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stubs/config.stub
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{{{
exports({ to: app.configPath('database.ts') })
}}}
import env from '#start/env'
{{#if dialect === 'sqlite'}}
import app from '@adonisjs/core/services/app'
{{#else}}
import env from '#start/env'
{{/if}}
import { defineConfig } from '@adonisjs/lucid'

Expand Down

0 comments on commit 797957d

Please sign in to comment.