From b98807a65f7f90da0d1c045fd679114a57f6fb59 Mon Sep 17 00:00:00 2001 From: Adrien Kiren Date: Thu, 8 Apr 2021 15:57:18 +0300 Subject: [PATCH] docs(Nuxt): add layer0SourceMaps option --- guides/nuxt.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/guides/nuxt.md b/guides/nuxt.md index c8510b5..21b4dd1 100644 --- a/guides/nuxt.md +++ b/guides/nuxt.md @@ -49,10 +49,13 @@ To prepare your Nuxt.js application for {{ PRODUCT_NAME }}: // nuxt.config.js module.exports = { - buildModules: ['{{ PACKAGE_NAME }}/nuxt/module'], + buildModules: [['{{ PACKAGE_NAME }}/nuxt/module', { layer0SourceMaps: true }]], } ``` +Options: +- `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 serverless bundle side. + 2. Run `{{ CLI_NAME }} init` to configure your project for {{ PRODUCT_NAME }}. ```bash