-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
47 lines (47 loc) · 1.17 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
// https://v3.nuxtjs.org/api/configuration/nuxt.config
// @ts-ignore
export default defineNuxtConfig({
ssr: true,
target: 'server',
modules: [
'@nuxtjs/tailwindcss',
'@nuxtjs/strapi',
['@pinia/nuxt', {
autoImports: ['defineStore', 'acceptHMRUpdate'],
}],
'@intlify/nuxt3',
],
css: [
'primevue/resources/themes/lara-light-teal/theme.css',
'primevue/resources/primevue.css',
'primeicons/primeicons.css'
],
components: true,
build: {
transpile: ['locale', 'vuecountryflag', 'primevue']
},
strapi: {
url: process.env.STRAPI_URL || 'http://localhost:1337',
prefix: '/api',
version: 'v4',
cookie: {},
cookieName: 'strapi_jwt'
},
intlify: {
localeDir: 'locales', // set the `locales` directory at source directory of your Nuxt application
vueI18n: {
locale: 'en',
}
},
typescript: {
strict: true
},
runtimeConfig: {
strapi: {
url: process.env.STRAPI_URL || 'http://localhost:1337',
}
},
imports: {
dirs: ['stores'],
}
})