-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
executable file
·106 lines (89 loc) · 2.39 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import { fileURLToPath } from 'url';
import { dirname, join } from 'path';
const currentDir = dirname(fileURLToPath(import.meta.url));
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
'@pinia/nuxt',
'@nuxtjs/tailwindcss',
'@formkit/auto-animate/nuxt',
'@vueuse/nuxt',
'nuxt-swiper',
'radix-vue/nuxt',
'@nuxt/eslint',
'@nuxt/fonts',
'@formkit/nuxt',
'@nuxtjs/i18n',
'@nuxtjs/device',
],
experimental: {
asyncContext: true,
sharedPrerenderData: true,
typedPages: true,
viewTransition: true,
},
features: {
devLogs: true,
},
future: {
compatibilityVersion: 4,
},
runtimeConfig: {
public: {
pond: {
shopwareEndpoint: '',
accessToken: '',
analytics: {
enabled: false,
type: 'gtag',
id: 'G-XXXX',
trackingUrl: 'https://www.googletagmanager.com/',
},
},
},
},
routeRules: {
'/newsletter-subscribe': { redirect: '/newsletter/confirm' },
},
extends: ['@shopware-pwa/composables-next/nuxt-layer'],
imports: {
dirs: [join(currentDir, 'composables/**'), join(currentDir, 'utils')],
},
formkit: {
autoImport: true,
},
fonts: {
defaults: {
weights: [100, 200, 300, 400, 500, 600, 700, 800, 900],
styles: ['normal', 'italic'],
},
},
components: {
dirs: [join(currentDir, 'components'), join(currentDir, 'components/*')],
global: true,
},
tailwindcss: {
config: {
content: [join(currentDir, 'formkit.theme.ts')],
},
},
css: ['~/node_modules/@glidejs/glide/dist/css/glide.core.min.css'],
i18n: {
vueI18n: './i18n.config.ts',
strategy: 'prefix_except_default',
defaultLocale: 'de-DE',
detectBrowserLanguage: false,
locales: [
{
code: 'de-DE',
file: 'i18n/de-DE/de-DE.ts',
},
{
code: 'en-GB',
file: 'i18n/en-GB/en-GB.ts',
},
],
},
compatibilityDate: '2024-10-14',
});