-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
nuxt.config.ts
44 lines (44 loc) · 1 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
typescript: {
// This ignores errors on build too.
typeCheck: false
},
modules: [
'nuxt-security'
],
// See https://nuxt-security.vercel.app/getting-started/quick-start for info on security.
security: {
rateLimiter: {
value: {
tokensPerInterval: process.dev ? 999999 : 30,
interval: "hour",
fireImmediately: false
},
route: '',
throwError: false, // optional
},
requestSizeLimiter: {
value: {
maxRequestSizeInBytes: 8000, // Most browsers have a request limit of 8KB, but this is to be safe.
maxUploadFileRequestInBytes: 1000000,
},
route: '',
throwError: false // optional,
},
allowedMethodsRestricter: {
value: ['GET'],
route: '',
throwError: false, // optional
},
corsHandler: {
value: {
origin: '*',
methods: '*',
},
route: ''
}
},
plugins: [{ src: '~/plugins/vercel.ts', mode: 'client' }],
css: ['vue-final-modal/style.css'],
})