Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/discal.dev. your Discord events, everywhere. subscribe once, sync to any calendar app – o discal.dev
Something went wrong. Try again.
discal.dev nuxt.config.ts
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125export default defineNuxtConfig({ modules: [ '@nuxtjs/html-validator', '@nuxt/fonts', '@nuxtjs/color-mode', 'nuxt-og-image', 'nuxt-auth-utils', 'reka-ui/nuxt', '@vite-pwa/nuxt', '@nuxt/test-utils', '@unocss/nuxt', ],
devtools: { enabled: true },
app: { head: { htmlAttrs: { lang: 'en' }, }, },
css: [ '@unocss/reset/tailwind.css', '~/assets/css/global.css', ],
colorMode: { classSuffix: '', preference: 'dark', },
runtimeConfig: { discordBotToken: '', session: { maxAge: 60 * 60 * 24 * 7, password: '', }, oauth: { discord: { clientId: '', clientSecret: '', }, bluesky: { scope: ['atproto', 'repo:community.lexicon.calendar.event', 'repo:community.lexicon.calendar.rsvp'], redirectUris: ['/auth/bluesky'], }, }, public: { appUrl: 'http://localhost:3000', discordClientId: '', }, },
routeRules: { '/_og/s/c_Discal.png': { prerender: true }, },
experimental: { typedPages: true, viewTransition: true, },
typescript: { nodeTsConfig: { include: ['../vite.config.ts'] } },
compatibilityDate: '2024-04-03',
nitro: { vercel: { config: { crons: [ { path: '/api/_cron/sync', schedule: '*/5 * * * *', }, ], }, }, storage: { kv: { driver: 'upstash', base: 'discal', url: process.env.KV_REST_API_URL, token: process.env.KV_REST_API_TOKEN, }, }, devStorage: { kv: { driver: 'fs', base: '.data/kv', }, }, },
vite: { optimizeDeps: { include: ['reka-ui'], }, },
auth: { atproto: true, },
htmlValidator: { failOnError: true, },
pwa: { manifest: { name: 'discal.dev', short_name: 'discal', description: 'Subscribe to Discord server events via ICS calendar feeds', theme_color: '#ec4899', background_color: '#ffffff', }, pwaAssets: { config: true, }, },})