diff --git a/bun.lock b/bun.lock index de69554..bce1036 100644 --- a/bun.lock +++ b/bun.lock @@ -52,6 +52,7 @@ "@eslint/eslintrc": "^3.3.1", "@tailwindcss/postcss": "^4.0.15", "@types/node": "^20.14.10", + "@types/raf": "^3.4.3", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "drizzle-kit": "^0.30.5", @@ -468,6 +469,8 @@ "@types/node": ["@types/node@20.19.6", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-uYssdp9z5zH5GQ0L4zEJ2ZuavYsJwkozjiUzCRfGtaaQcyjAMJ34aP8idv61QlqTozu6kudyr6JMq9Chf09dfA=="], + "@types/raf": ["@types/raf@3.4.3", "", {}, "sha512-c4YAvMedbPZ5tEyxzQdMoOhhJ4RD3rngZIdwC2/qDN3d7JpEhB6fiBRKVY1lg5B7Wk+uPBjn5f39j1/2MY1oOw=="], + "@types/react": ["@types/react@19.1.8", "", { "dependencies": { "csstype": "^3.0.2" } }, "sha512-AwAfQ2Wa5bCx9WP8nZL2uMZWod7J7/JSplxbTmBQ5ms6QpqNYm672H0Vu9ZVKVngQ+ii4R/byguVEUZQyeg44g=="], "@types/react-dom": ["@types/react-dom@19.1.6", "", { "peerDependencies": { "@types/react": "^19.0.0" } }, "sha512-4hOiT/dwO8Ko0gV1m/TJZYk3y0KBnY9vzDh7W+DH17b2HFSOGgdj33dhihPeuy3l0q23+4e+hoXHV6hCC4dCXw=="], diff --git a/drizzle.config.ts b/drizzle.config.ts index 02ea44c..4550c2e 100644 --- a/drizzle.config.ts +++ b/drizzle.config.ts @@ -5,9 +5,13 @@ import { env } from "~/env"; export default { schema: "./src/server/db/schema.ts", dialect: "sqlite", - dbCredentials: { - url: env.DATABASE_URL, - authToken: env.DATABASE_AUTH_TOKEN, - }, + dbCredentials: env.DATABASE_AUTH_TOKEN + ? { + url: env.DATABASE_URL, + token: env.DATABASE_AUTH_TOKEN, + } + : { + url: env.DATABASE_URL, + }, tablesFilter: ["beenvoice_*"], } satisfies Config; diff --git a/next.config.js b/next.config.js index 121c4f4..76e1207 100644 --- a/next.config.js +++ b/next.config.js @@ -5,6 +5,10 @@ import "./src/env.js"; /** @type {import("next").NextConfig} */ -const config = {}; +const config = { + eslint: { + ignoreDuringBuilds: true, + }, +}; export default config; diff --git a/package.json b/package.json index e682787..028e7d7 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,7 @@ "@eslint/eslintrc": "^3.3.1", "@tailwindcss/postcss": "^4.0.15", "@types/node": "^20.14.10", + "@types/raf": "^3.4.3", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "drizzle-kit": "^0.30.5", diff --git a/tsconfig.json b/tsconfig.json index 1fd505b..c756a44 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,6 +23,7 @@ "jsx": "preserve", "plugins": [{ "name": "next" }], "incremental": true, + "types": ["node"], /* Path Aliases */ "baseUrl": ".", @@ -38,5 +39,8 @@ "**/*.js", ".next/types/**/*.ts" ], + "ts-node": { + "esm": true + }, "exclude": ["node_modules"] }