heavily simplify server and app content. unify styling
All checks were successful
ci/woodpecker/pr/pr Pipeline was successful
All checks were successful
ci/woodpecker/pr/pr Pipeline was successful
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
import { getDb, closeDb } from '../utils/db.js'
|
||||
|
||||
/**
|
||||
* Initialize DB at server startup.
|
||||
* Close DB on server shutdown to avoid native sqlite3 crashes in worker teardown.
|
||||
*/
|
||||
export default defineNitroPlugin((nitroApp) => {
|
||||
void getDb()
|
||||
nitroApp.hooks.hook('close', () => {
|
||||
|
||||
Reference in New Issue
Block a user