latest
This commit is contained in:
parent
3606848055
commit
63e1d40722
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"lock": false,
|
||||||
"tasks": {
|
"tasks": {
|
||||||
"check": "deno fmt && deno fmt --check . && deno lint . && deno check",
|
"check": "deno fmt && deno fmt --check . && deno lint . && deno check",
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
@ -8,10 +9,10 @@
|
|||||||
"e2e": "deno run -A npm:playwright test",
|
"e2e": "deno run -A npm:playwright test",
|
||||||
"e2e:ui": "deno run -A npm:playwright test --ui",
|
"e2e:ui": "deno run -A npm:playwright test --ui",
|
||||||
"e2e:report": "deno run -A npm:playwright show-report",
|
"e2e:report": "deno run -A npm:playwright show-report",
|
||||||
"db:generate": "deno run -A npm:drizzle-kit generate",
|
"db:generate": "deno run -A drizzle-kit generate",
|
||||||
"db:migrate": "deno run -A npm:drizzle-kit migrate",
|
"db:migrate": "deno run -A drizzle-kit migrate",
|
||||||
"db:push": "deno run -A npm:drizzle-kit push",
|
"db:push": "deno run -A drizzle-kit push",
|
||||||
"db:studio": "deno run -A npm:drizzle-kit studio",
|
"db:studio": "deno run -A drizzle-kit studio",
|
||||||
"test:auth-callback-db": "./tests/run-auth-callback-db-test.sh"
|
"test:auth-callback-db": "./tests/run-auth-callback-db-test.sh"
|
||||||
},
|
},
|
||||||
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
|
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
|
||||||
|
|||||||
@ -1,17 +1,6 @@
|
|||||||
import { defineConfig } from "drizzle-kit";
|
import { defineConfig } from "drizzle-kit";
|
||||||
import process from "node:process";
|
|
||||||
|
|
||||||
const dbUrl = (() => {
|
const dbUrl = Deno.env.get("POSTGRES_OPTIONS")
|
||||||
const fromProcess = process.env.POSTGRES_OPTIONS;
|
|
||||||
const fromDeno = typeof Deno !== "undefined"
|
|
||||||
? Deno.env.get("POSTGRES_OPTIONS")
|
|
||||||
: undefined;
|
|
||||||
return fromProcess ?? fromDeno;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (!dbUrl) {
|
|
||||||
throw new Error("POSTGRES_OPTIONS environment variable is required");
|
|
||||||
}
|
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
schema: "./db/schema.ts",
|
schema: "./db/schema.ts",
|
||||||
@ -23,4 +12,4 @@ export default defineConfig({
|
|||||||
schemaFilter: ["public"],
|
schemaFilter: ["public"],
|
||||||
strict: true,
|
strict: true,
|
||||||
verbose: true,
|
verbose: true,
|
||||||
});
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user