Something went wrong. Try again.
mirror your GitHub repos to tangled.org automatically synchub.to
mirror sync tangled github git
Something went wrong. Try again.
synchub.to nuxt.config.ts
2.3 kB · 100 lines
TypeScript
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101// https://nuxt.com/docs/api/configuration/nuxt-configexport default defineNuxtConfig({ devServer: { host: '127.0.0.1', }, modules: [ '@nuxtjs/html-validator', '@nuxt/scripts', '@nuxt/fonts', '@nuxt/image', '@nuxt/test-utils', ], devtools: { enabled: true }, css: ['~/assets/css/tokens.css', '~/assets/css/base.css'], fonts: { families: [ { name: 'JetBrains Mono', provider: 'google', weights: [400, 500, 700] }, { name: 'IBM Plex Sans', provider: 'google', weights: [300, 400, 600] }, ], }, runtimeConfig: { databaseUrl: '', githubAppId: '', githubAppPrivateKey: '', githubAppClientId: '', githubAppClientSecret: '', githubWebhookSecret: '', workerBudgetMs: '', workerConcurrency: '', maxPackBytes: '', encryptionKey: '', atprotoPrivateJwk: '', sessionPassword: '', public: { url: '', }, }, typescript: { nodeTsConfig: { compilerOptions: { types: ['node'], }, include: [ '../vite.config.ts', '../test/unit', '../test/utils', // TODO: fix in a better way 🤦 './types/nitro-imports.d.ts', ], }, }, app: { head: { htmlAttrs: { lang: 'en' }, title: 'synchub.to', link: [ { rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' }, { rel: 'alternate icon', href: '/favicon.ico' }, ], }, }, future: { compatibilityVersion: 4, }, experimental: { typedPages: true, }, routeRules: { '/': { noScripts: true, prerender: true }, '/dashboard': { prerender: true }, '/connect': { noScripts: true }, }, nitro: { vercel: { config: { crons: [ { path: '/api/jobs/run', schedule: '* * * * *', }, ], }, functions: { maxDuration: 300, }, }, typescript: { tsConfig: { // Pull dotted directories like `server/routes/.well-known/` into the // server tsconfig; TypeScript's default include glob skips them. include: ['../server/**/.*/**/*'], }, }, }, compatibilityDate: '2024-04-03', // Ensure that any HTML validation errors are treated as build errors htmlValidator: { failOnError: true, },})