-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
73 lines (72 loc) · 1.5 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import path from "node:path";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
srcDir: "./src",
compatibilityDate: "2024-04-03",
devtools: { enabled: true },
modules: [
"@nuxtjs/tailwindcss",
"@pinia/nuxt",
"@nuxt/image",
"@vueuse/nuxt",
"@nuxt/icon",
"@nuxtjs/storybook",
"shadcn-nuxt",
"@nuxt/test-utils/module",
"@nuxtjs/robots",
],
vite: {
base: "/",
server: {
strictPort: true,
origin: "http://localhost:3000",
},
preview: {
port: 3000,
host: true,
},
optimizeDeps: {
include: [
"@storybook/blocks",
"@storybook/theming",
"@storybook/addon-links/preview",
"@storybook/addon-essentials/docs/preview",
"@storybook/addon-essentials/actions/preview",
"@storybook/addon-essentials/backgrounds/preview",
"@storybook/addon-essentials/viewport/preview",
"@storybook/addon-essentials/measure/preview",
"@storybook/addon-essentials/outline/preview",
"@storybook/addon-essentials/highlight/preview",
"@storybook/addon-interactions/preview",
"@storybook/addon-actions/decorator",
],
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
},
storybook: {
host: "http://localhost",
port: 6006,
route: "/_storybook",
},
pinia: {
storesDirs: ["stores"],
},
shadcn: {
prefix: "",
componentDir: "./src/components/ui",
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
vueuse: {
ssrHandlers: true,
autoImports: true,
},
});