Visitar URL original
Feature/game framework improvements by cwchanap · Pull Request #17 · cwchanap/cetus · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
revert: restore original CI DB logic - use local SQLite in CI
  • Loading branch information
cwchanap committed Feb 8, 2026
commit f8f01041d018f4897391caea76cb1c878612fa43
3 changes: 1 addition & 2 deletions src/lib/server/db/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ const isCi = process.env.CI === 'true' || process.env.CI === '1'
const fallbackUrl = pathToFileURL(
path.resolve(process.cwd(), 'db', 'db.sqlite')
).toString()
const dbUrl =
import.meta.env.TURSO_DATABASE_URL || (isCi ? fallbackUrl : undefined)
const dbUrl = isCi ? fallbackUrl : import.meta.env.TURSO_DATABASE_URL

Comment thread
cwchanap marked this conversation as resolved.
Resolved
Comment thread
cwchanap marked this conversation as resolved.
Resolved
if (!dbUrl) {
throw new Error('TURSO_DATABASE_URL environment variable is required')
Expand Down
Loading