Aceforth Aceforth

# Nuxt Netlify

Dynamically generate _headers and _redirects files for Netlify in your Nuxt.js projects.

This module supports the creation of redirects and header rules for your Netlify site: you can easily configure custom headers, basic auth, redirect instructions and rewrite rules from your nuxt config file.

# Installation

WARNING

node >= 10 and nuxt >= 2 are required.

npm install --save-dev @aceforth/nuxt-netlify

or

yarn add --dev @aceforth/nuxt-netlify

Add @aceforth/nuxt-netlify to the buildModules section of nuxt.config.js:

⚠️ If you are using Nuxt < 2.9.0, use modules instead.

{
  buildModules: [
    '@aceforth/nuxt-netlify',
  ],

  netlify: { 
    // configuration
  }
}

or

{
  buildModules: [
    [
      '@aceforth/nuxt-netlify', { 
        // configuration
      }
    ]
  ]
}
Last Updated: 2020-04-12T17:24:13.000Z
Caught a mistake or want to contribute to the documentation?
Edit this page on GitHub!
© Aceforth Privacy Code of Conduct