ffa638429e
- config/ with default + local (gitignored) merge pattern - fetcher with manual redirect tracking, cookie jar, dev mode JSON logging - cheerio parser stub ready for selectors - telegram sender - weekday-aware entry point Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
492 B
TypeScript
21 lines
492 B
TypeScript
import defaultConfig from "./default"
|
|
|
|
let localConfig: Partial<typeof defaultConfig> = {}
|
|
|
|
try {
|
|
const local = await import("./local")
|
|
localConfig = local.default
|
|
} catch {
|
|
// no local config, that's fine
|
|
}
|
|
|
|
const config = {
|
|
...defaultConfig,
|
|
...localConfig,
|
|
days: { ...defaultConfig.days, ...localConfig.days },
|
|
telegram: { ...defaultConfig.telegram, ...localConfig.telegram },
|
|
}
|
|
|
|
export default config
|
|
export type { Config, DayUrls, TelegramConfig } from "./default"
|