Skip to content

Commit

Permalink
docs: update quick-start
Browse files Browse the repository at this point in the history
  • Loading branch information
runyasak committed Jan 26, 2023
1 parent 3673d9b commit 01dec2c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/content/1.getting-started/1.quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,27 @@ And that's it! The Nuxt Security module will now register routeRoules and middle
})
```
Or, you can pass options directly
```js{}[nuxt.config.js]
export default defineNuxtConfig({
modules: [
[
'nuxt-security',
{
requestSizeLimiter: {
value: {
maxRequestSizeInBytes: 3000000,
maxUploadFileRequestInBytes: 9000000,
},
route: '/upload-file'
}
// Other options
}
]
]
})
```
::alert{type="info"}
You can find more about configuring `nuxt-security` [here](/getting-started/configuration).
::

0 comments on commit 01dec2c

Please sign in to comment.