Introducing you Nuxt Netlify

We created a new module for Nuxt.js that supports the dynamic creation of redirects and header rules for your site in Netlify.

Introducing you Nuxt Netlify

We are pleased to introduce you Nuxt Netlify, a new module for Nuxt.js that allows you to easily create redirects and header rules for your site deployed to Netlify.

Getting Started

Getting started is simple, just install the module as follows:

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',
  ],
}

The default configuration will generate an empty _redirects file and a _headers file with some caching and security headers:

# _headers

/*
  Referrer-Policy: origin
  X-Content-Type-Options: nosniff
  X-Frame-Options: DENY
  X-XSS-Protection: 1; mode=block

/_nuxt/*
  Cache-Control: public, max-age=31536000, immutable

/sw.js
  Cache-Control: no-cache

Contribute to Nuxt Netlify

Nuxt Netlify is an open source project, any contribution is welcome, even giving us a star on GitHub ★ or spreading the word 🤓.

Documentation & Support

If you want extra details of how to configure and use this module, the full documentation is available at https://www.bazzite.com/docs/nuxt-netlify/.

For Bug reports or Feature requests, use the Issues section. But, if you have questions, please go to our Community Chat.

You may also want to follow us on Twitter for future updates and valuable topics.

Professional Support

If you require Professional Assistance on your project(s), please contact us at https://www.bazzite.com/contact.


Originally published at www.bazzite.com on March 1, 2019.