Setting up drizzle and fix site not showing in private resource

This commit is contained in:
Owen
2026-02-12 12:05:15 -08:00
parent bff9d33ee6
commit 52484c774e
6 changed files with 107 additions and 58 deletions

View File

@@ -1,14 +1,15 @@
import { APP_PATH } from "@server/lib/consts";
import { defineConfig } from "drizzle-kit";
import path from "path";
const schema = [path.join("server", "db", "pg", "schema")];
const schema = [path.join("server", "db", "sqlite", "schema")];
export default defineConfig({
dialect: "postgresql",
dialect: "sqlite",
schema: schema,
out: path.join("server", "migrations"),
verbose: true,
dbCredentials: {
url: process.env.DATABASE_URL as string
url: path.join(APP_PATH, "db", "db.sqlite")
}
});