mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-21 04:23:28 +01:00
Change linter config to antfu config and lint code
This commit is contained in:
@@ -2,7 +2,8 @@ import { consola } from 'consola'
|
||||
import { migrate } from 'drizzle-orm/d1/migrator'
|
||||
|
||||
export default defineNitroPlugin(async () => {
|
||||
if (!import.meta.dev) return
|
||||
if (!import.meta.dev)
|
||||
return
|
||||
|
||||
onHubReady(async () => {
|
||||
await migrate(useDB(), { migrationsFolder: 'server/database/migrations' })
|
||||
|
||||
Reference in New Issue
Block a user