Skip to content

Commit

Permalink
fix(docs): update Installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
juliomrqz committed Mar 31, 2020
1 parent 34075b7 commit d0fbe6f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 22 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,28 @@ This module supports the creation of [**redirects**][netlify-redirects] and [**h


```bash
npm install @bazzite/nuxt-netlify
npm install --save-dev @bazzite/nuxt-netlify
```

or

```bash
yarn add @bazzite/nuxt-netlify
yarn add --dev @bazzite/nuxt-netlify
```

Add `@bazzite/nuxt-netlify` to the modules section of `nuxt.config.js`:
Add `@bazzite/nuxt-netlify` to the `buildModules` section of `nuxt.config.js`:

:warning: If you are using Nuxt `< 2.9.0`, use `modules` instead.

```js
{
modules: [
buildModules: [
'@bazzite/nuxt-netlify',
],

netlify: { mergeSecurityHeaders: true }
netlify: {
mergeSecurityHeaders: true
}
}
```

Expand All @@ -47,7 +51,7 @@ or

```js
{
modules: [
buildModules: [
[
'@bazzite/nuxt-netlify',
{
Expand Down
22 changes: 14 additions & 8 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Dynamically generate _headers and _redirects files for Netlify in
permalink: /docs/nuxt-netlify/
created: "2019-03-06T15:43:56.239Z"
published: "2019-03-06T15:43:56.239Z"
modified: "2020-03-31T20:07:29Z"
modified: "2020-03-31T20:16:44Z"
---

# Nuxt Netlify
Expand All @@ -21,24 +21,28 @@ This module supports the creation of [**redirects**][netlify-redirects] and [**h
:::

```bash
npm install @bazzite/nuxt-netlify
npm install --save-dev @bazzite/nuxt-netlify
```

or

```bash
yarn add @bazzite/nuxt-netlify
yarn add --dev @bazzite/nuxt-netlify
```

Add `@bazzite/nuxt-netlify` to the modules section of `nuxt.config.js`:
Add `@bazzite/nuxt-netlify` to the `buildModules` section of `nuxt.config.js`:

:warning: If you are using Nuxt `< 2.9.0`, use `modules` instead.

```js
{
modules: [
buildModules: [
'@bazzite/nuxt-netlify',
],

netlify: { }
netlify: {
// configuration
}
}
```

Expand All @@ -47,9 +51,11 @@ or

```js
{
modules: [
buildModules: [
[
'@bazzite/nuxt-netlify', { }
'@bazzite/nuxt-netlify', {
// configuration
}
]
]
}
Expand Down
22 changes: 14 additions & 8 deletions docs/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Genera dinámicamente archivos _headers y _redirects para Netlify
permalink: /docs/nuxt-netlify/
created: "2019-03-06T15:43:56.239Z"
published: "2019-03-06T15:43:56.239Z"
modified: "2020-03-31T20:07:29Z"
modified: "2020-03-31T20:16:44Z"
---

# Nuxt Netlify
Expand All @@ -20,34 +20,40 @@ Este módulo soporta la creación de reglas de [**redirecciones**][netlify-redir
:::

```bash
npm install @bazzite/nuxt-netlify
npm install --save-dev @bazzite/nuxt-netlify
```

o

```bash
yarn add @bazzite/nuxt-netlify
yarn add --dev @bazzite/nuxt-netlify
```

Añade `@bazzite/nuxt-netlify` a la sección de módulos de `nuxt.config.js`:
Añade `@bazzite/nuxt-netlify` a la sección `buildModules` de `nuxt.config.js`:

:warning: Si estás usando Nuxt `< 2.9.0`, usa `modules` en su lugar.

```js
{
modules: [
buildModules: [
'@bazzite/nuxt-netlify',
],

netlify: { }
netlify: {
// configuración
}
}
```

o

```js
{
modules: [
buildModules: [
[
'@bazzite/nuxt-netlify', { }
'@bazzite/nuxt-netlify', {
// configuración
}
]
]
}
Expand Down

0 comments on commit d0fbe6f

Please sign in to comment.