Skip to content

Commit b31ac61

Browse files
committed
vercel
1 parent 640dad8 commit b31ac61

File tree

2 files changed

+99
-92
lines changed

2 files changed

+99
-92
lines changed

nuxt.config.ts

Lines changed: 97 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,112 @@
1-
import { dirname, join } from 'node:path';
2-
import { fileURLToPath } from 'node:url';
1+
import {dirname, join} from 'node:path';
2+
import {fileURLToPath} from 'node:url';
33
import tailwindcss from '@tailwindcss/vite';
44

55
const currentDir = dirname(fileURLToPath(import.meta.url));
66

77
export default defineNuxtConfig({
8-
ssr: true,
9-
devtools: { enabled: true },
10-
modules: [
11-
'shadcn-nuxt',
12-
'@vueuse/nuxt',
13-
'@ztl-uwu/nuxt-content',
14-
'@nuxt/image',
15-
'@nuxt/icon',
16-
'@nuxtjs/color-mode',
17-
'nuxt-og-image',
18-
'@nuxt/scripts',
19-
'@nuxtjs/i18n',
20-
'@nuxt/fonts',
21-
],
22-
shadcn: {
23-
prefix: 'Ui',
24-
componentDir: join(currentDir, './components/ui'),
25-
},
26-
components: {
27-
dirs: [
28-
{
29-
path: './components',
30-
ignore: ['**/*.ts'],
31-
},
8+
nitro: {
9+
preset: 'static',
10+
prerender: {
11+
crawlLinks: false,
12+
routes: ['/', '/docs/getting-started', '/about']
13+
}
14+
},
15+
ssr: true,
16+
devtools: {enabled: true},
17+
modules: [
18+
'shadcn-nuxt',
19+
'@vueuse/nuxt',
20+
'@ztl-uwu/nuxt-content',
21+
'@nuxt/image',
22+
'@nuxt/icon',
23+
'@nuxtjs/color-mode',
24+
'nuxt-og-image',
25+
'@nuxt/scripts',
26+
'@nuxtjs/i18n',
27+
'@nuxt/fonts',
3228
],
33-
},
34-
i18n: {
35-
bundle: {
36-
optimizeTranslationDirective: false,
29+
shadcn: {
30+
prefix: 'Ui',
31+
componentDir: join(currentDir, './components/ui'),
32+
},
33+
components: {
34+
dirs: [
35+
{
36+
path: './components',
37+
ignore: ['**/*.ts'],
38+
},
39+
],
3740
},
38-
strategy: 'prefix_except_default',
39-
},
40-
colorMode: {
41-
classSuffix: '',
42-
disableTransition: true,
43-
},
44-
css: [
45-
join(currentDir, './assets/css/themes.css'),
46-
'~/assets/css/tailwind.css',
47-
],
48-
content: {
49-
documentDriven: true,
50-
highlight: {
51-
theme: {
52-
default: 'github-light',
53-
dark: 'github-dark',
54-
},
55-
preload: ['json', 'js', 'ts', 'html', 'css', 'vue', 'diff', 'shell', 'markdown', 'mdc', 'yaml', 'bash', 'ini', 'dotenv'],
41+
i18n: {
42+
bundle: {
43+
optimizeTranslationDirective: false,
44+
},
45+
strategy: 'prefix_except_default',
5646
},
57-
navigation: {
58-
fields: [
59-
'icon',
60-
'navBadges',
61-
'navTruncate',
62-
'badges',
63-
'toc',
64-
'sidebar',
65-
'collapse',
66-
'editLink',
67-
'prevNext',
68-
'breadcrumb',
69-
'fullpage',
70-
],
47+
colorMode: {
48+
classSuffix: '',
49+
disableTransition: true,
7150
},
72-
experimental: {
73-
search: {
74-
indexed: true,
75-
},
51+
css: [
52+
join(currentDir, './assets/css/themes.css'),
53+
'~/assets/css/tailwind.css',
54+
],
55+
content: {
56+
documentDriven: true,
57+
highlight: {
58+
theme: {
59+
default: 'github-light',
60+
dark: 'github-dark',
61+
},
62+
preload: ['json', 'js', 'ts', 'html', 'css', 'vue', 'diff', 'shell', 'markdown', 'mdc', 'yaml', 'bash', 'ini', 'dotenv'],
63+
},
64+
navigation: {
65+
fields: [
66+
'icon',
67+
'navBadges',
68+
'navTruncate',
69+
'badges',
70+
'toc',
71+
'sidebar',
72+
'collapse',
73+
'editLink',
74+
'prevNext',
75+
'breadcrumb',
76+
'fullpage',
77+
],
78+
},
79+
experimental: {
80+
search: {
81+
indexed: true,
82+
},
83+
},
7684
},
77-
},
78-
icon: {
79-
clientBundle: {
80-
scan: true,
81-
sizeLimitKb: 512,
85+
icon: {
86+
clientBundle: {
87+
scan: true,
88+
sizeLimitKb: 512,
89+
},
8290
},
83-
},
84-
fonts: {
85-
defaults: {
86-
weights: ['300 800'],
91+
fonts: {
92+
defaults: {
93+
weights: ['300 800'],
94+
},
8795
},
88-
},
89-
typescript: {
90-
tsConfig: {
91-
compilerOptions: {
92-
baseUrl: '.',
93-
},
96+
typescript: {
97+
tsConfig: {
98+
compilerOptions: {
99+
baseUrl: '.',
100+
},
101+
},
94102
},
95-
},
96-
vite: {
97-
plugins: [
98-
tailwindcss(),
99-
],
100-
optimizeDeps: {
101-
include: ['debug'],
103+
vite: {
104+
plugins: [
105+
tailwindcss(),
106+
],
107+
optimizeDeps: {
108+
include: ['debug'],
109+
},
102110
},
103-
},
104-
compatibilityDate: '2025-05-13',
111+
compatibilityDate: '2025-05-13',
105112
});

vercel.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"src": "package.json",
66
"use": "@vercel/static-build",
77
"config": {
8-
"distDir": ".output/public"
8+
"distDir": "www/.output/public"
99
}
1010
}
1111
],
@@ -17,4 +17,4 @@
1717
"routes": [
1818
{ "src": "/(.*)", "dest": "/$1" }
1919
]
20-
}
20+
}

0 commit comments

Comments
 (0)