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