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