forked from bryantgillespie/nuxt3-directus-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
36 lines (30 loc) · 723 Bytes
/
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
export default defineNuxtConfig({
// https://v3.nuxtjs.org/guide/directory-structure/nuxt.config/
// As of RC12 Nuxt 3 supports Hybrid rendering mode
// https://v3.nuxtjs.org/guide/concepts/rendering#route-rules
routeRules: {
'/protected-page/**': { swr: true },
'/pages/**': { static: true },
},
css: [],
modules: [
'@nuxtjs/tailwindcss',
// https://pinia.esm.dev
'@pinia/nuxt',
// https://vueuse.org/
'@vueuse/nuxt',
],
runtimeConfig: {
public: {
directusUrl: process.env.DIRECTUS_URL,
},
},
postcss: {
plugins: {
'postcss-import': {},
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
},
},
})