-
Notifications
You must be signed in to change notification settings - Fork 5
/
nuxt.config.ts
61 lines (51 loc) · 1.14 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
import { auth, naiveui, tailwindcss, s3, security } from './config'
export default defineNuxtConfig({
ssr: true,
devtools: { enabled: true },
nitro: {
preset: process.env.NITRO_PRESET,
},
app: {
head: {
title: 'Nuxt starter',
htmlAttrs: {
lang: 'en',
},
meta: [
{ name: 'description', content: 'Edge compatible Nuxt starter' },
{ name: 'theme-color', content: '#18181B' },
],
},
},
css: ['~/assets/styles/main.css'],
modules: [
'@bg-dev/nuxt-auth',
'@bg-dev/nuxt-naiveui',
'@bg-dev/nuxt-s3',
'@nuxtjs/tailwindcss',
'nuxt-security',
'@nuxt/eslint',
],
eslint: {
config: {
stylistic: true,
},
},
auth,
naiveui,
tailwindcss,
s3,
security,
routeRules: {
'/api/s3/mutation/**': { security: { xssValidator: false } },
'/api/s3/**': { security: { rateLimiter: { tokensPerInterval: 10, interval: 30000 } } },
'/api/auth/**': { security: { rateLimiter: { tokensPerInterval: 15, interval: 30000 } } },
},
typescript: {
tsConfig: {
compilerOptions: {
module: 'ESNext',
},
},
},
})