try fix CI 2
This commit is contained in:
@@ -6,6 +6,6 @@ export default defineConfig({
|
||||
schema: './server/db/schema.ts',
|
||||
dialect: 'sqlite',
|
||||
dbCredentials: {
|
||||
url: process.env.NUXT_PATH_DB!
|
||||
url: 'data/music.db'!
|
||||
}
|
||||
})
|
||||
|
||||
@@ -6,7 +6,7 @@ let _db: ReturnType<typeof drizzle> | null = null
|
||||
export function useDB() {
|
||||
if (_db) return _db
|
||||
|
||||
let dbPath = process.env.NUXT_PATH_DB
|
||||
let dbPath = 'data/music.db'
|
||||
|
||||
if (!dbPath) {
|
||||
throw new Error('NUXT_PATH_DB is not configured')
|
||||
|
||||
Reference in New Issue
Block a user