Bazzite Bazzite

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

nuxt >= 2 is required.

npm install @bazzite/nuxt-netlify

or

yarn add @bazzite/nuxt-netlify

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

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

  netlify: { }
}

or

{
  modules: [
    [
      '@bazzite/nuxt-netlify', { }
    ]
  ]
}
Last Updated: 2019-06-12T00:55:34.687Z
Caught a mistake or want to contribute to the documentation?
Edit this page on GitHub!
© Bazzite Privacy Code of Conduct