fix: docker build

This commit is contained in:
2025-12-12 09:26:54 -05:00
parent d7dc911db4
commit 28c982ee37
2 changed files with 29 additions and 4 deletions

View File

@@ -1,11 +1,13 @@
import { defineConfig } from 'drizzle-kit'; import { defineConfig } from 'drizzle-kit';
import * as dotenv from 'dotenv'; import * as dotenv from 'dotenv';
if (!process.env.DATABASE_URL) {
if (process.env.NODE_ENV === "production") { if (process.env.NODE_ENV === "production") {
dotenv.config({ path: '.env.production' }); dotenv.config({ path: '.env.production' });
} else { } else {
dotenv.config({ path: '.env.local' }); dotenv.config({ path: '.env.local' });
} }
}
export default defineConfig({ export default defineConfig({
dialect: 'postgresql', dialect: 'postgresql',

23
src/lib/rfc5545-types.ts Normal file
View File

@@ -0,0 +1,23 @@
// RFC 5545 (iCalendar) Recurrence Rule types
// Based on the iCalendar specification for RRULE
export type Frequency = 'SECONDLY' | 'MINUTELY' | 'HOURLY' | 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY'
export type Weekday = 'SU' | 'MO' | 'TU' | 'WE' | 'TH' | 'FR' | 'SA'
export interface RecurrenceRule {
freq: Frequency
until?: string // ISO 8601 date string
count?: number
interval?: number
bySecond?: number[]
byMinute?: number[]
byHour?: number[]
byDay?: string[]
byMonthDay?: number[]
byYearDay?: number[]
byWeekNo?: number[]
byMonth?: number[]
bySetPos?: number[]
wkst?: Weekday
}