Skip to content
This repository was archived by the owner on Apr 15, 2021. It is now read-only.

Commit 1c070de

Browse files
committed
docs(Nuxt): add layer0SourceMaps option
1 parent 036afec commit 1c070de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

guides/nuxt.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@ To prepare your Nuxt.js application for {{ PRODUCT_NAME }}:
4949
// nuxt.config.js
5050

5151
module.exports = {
52-
buildModules: ['{{ PACKAGE_NAME }}/nuxt/module'],
52+
buildModules: [['{{ PACKAGE_NAME }}/nuxt/module', { layer0SourceMaps: true }]],
5353
}
5454
```
5555

56+
Options:
57+
- `layer0SourceMaps: true|false`: when true, the serverless build includes sourcemaps files which makes debugging easier using the Log Streamer available in Layer0 Console. On the other hand it increases the bundle side.
58+
5659
2. Run `{{ CLI_NAME }} init` to configure your project for {{ PRODUCT_NAME }}.
5760

5861
```bash

0 commit comments

Comments
 (0)