mirror your GitHub repos to tangled.org automatically
1// https://nuxt.com/docs/api/configuration/nuxt-config
2export default defineNuxtConfig({
3 modules: [
4 '@nuxtjs/html-validator',
5 '@nuxt/scripts',
6 '@nuxt/fonts',
7 '@nuxt/image',
8 'nuxt-og-image',
9 '@nuxt/test-utils',
10 ],
11 devtools: { enabled: true },
12 runtimeConfig: {
13 databaseUrl: '',
14 githubAppId: '',
15 githubAppPrivateKey: '',
16 githubWebhookSecret: '',
17 cronSecret: '',
18 workerBudgetMs: '',
19 encryptionKey: '',
20 atprotoPrivateJwk: '',
21 public: {
22 publicURL: '',
23 },
24 },
25 typescript: {
26 nodeTsConfig: {
27 include: ['../vite.config.ts'],
28 },
29 },
30 app: {
31 head: {
32 htmlAttrs: { lang: 'en' },
33 },
34 },
35 future: {
36 compatibilityVersion: 4,
37 },
38 experimental: {
39 typedPages: true,
40 },
41 nitro: {
42 vercel: {
43 config: {
44 crons: [
45 {
46 path: '/api/jobs/run',
47 schedule: '* * * * *',
48 },
49 ],
50 },
51 },
52 typescript: {
53 tsConfig: {
54 // Pull dotted directories like `server/routes/.well-known/` into the
55 // server tsconfig; TypeScript's default include glob skips them.
56 include: ['../server/**/.*/**/*'],
57 },
58 },
59 },
60 compatibilityDate: '2024-04-03',
61 // Ensure that any HTML validation errors are treated as build errors
62 htmlValidator: {
63 failOnError: true,
64 },
65})