-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
55 lines (54 loc) · 1.43 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
export default defineNuxtConfig({
devtools: { enabled: true },
experimental: { typedPages: true },
future: { compatibilityVersion: 4 },
nitro: {
imports: { dirs: ["./lib"] },
},
routeRules: {
"/": { redirect: "/auth/login" },
"/admin/**": { ssr: false },
"/api/**": { cors: true },
},
css: ["~/assets/css/tippy.css"],
icon: { clientBundle: { scan: true, sizeLimitKb: 0 }, mode: "svg" },
modules: [
"@nuxtjs/tailwindcss",
"@vueuse/nuxt",
"@vee-validate/nuxt",
"@nuxtjs/color-mode",
"@nuxt/icon",
"@nuxt/fonts",
"nuxt-unlayer",
"@morev/vue-transitions/nuxt",
"@nuxt/eslint",
"json-editor-vue/nuxt",
],
tailwindcss: { exposeConfig: true, editorSupport: true },
colorMode: { classSuffix: "" },
imports: {
imports: [
{ from: "tailwind-variants", name: "tv" },
{ from: "tailwind-variants", name: "VariantProps", type: true },
{ from: "vue-sonner", name: "toast", as: "useSonner" },
],
},
app: {
head: {
title: "Templates",
titleTemplate: "%s | Templates",
script: [
{
src: "https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.12/pdfmake.min.js",
defer: true,
},
{
src: "https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.12/vfs_fonts.min.js",
defer: true,
},
],
},
},
compatibilityDate: "2024-12-03",
build: { transpile: ["vue-sonner"] },
});