fix: docker build
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { defineConfig } from 'drizzle-kit';
|
||||
import * as dotenv from 'dotenv';
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
if (!process.env.DATABASE_URL) {
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
dotenv.config({ path: '.env.production' });
|
||||
} else {
|
||||
} else {
|
||||
dotenv.config({ path: '.env.local' });
|
||||
}
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
|
||||
23
src/lib/rfc5545-types.ts
Normal file
23
src/lib/rfc5545-types.ts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user