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 sessionPassword: '',
25 public: {
26 url: '',
27 },
28 },
29 typescript: {
30 nodeTsConfig: {
31 include: ['../vite.config.ts'],
32 },
33 },
34 app: {
35 head: {
36 htmlAttrs: { lang: 'en' },
37 },
38 },
39 future: {
40 compatibilityVersion: 4,
41 },
42 experimental: {
43 typedPages: true,
44 },
45 nitro: {
46 vercel: {
47 config: {
48 crons: [
49 {
50 path: '/api/jobs/run',
51 schedule: '* * * * *',
52 },
53 ],
54 },
55 },
56 typescript: {
57 tsConfig: {
58 // Pull dotted directories like `server/routes/.well-known/` into the
59 // server tsconfig; TypeScript's default include glob skips them.
60 include: ['../server/**/.*/**/*'],
61 },
62 },
63 },
64 compatibilityDate: '2024-04-03',
65 // Ensure that any HTML validation errors are treated as build errors
66 htmlValidator: {
67 failOnError: true,
68 },
69})