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 @aceforth/nuxt-netlify # or yarn add @aceforth/nuxt-netlify

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

{
  modules: [
    '@aceforth/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 /docs/nuxt-netlify.

For Bug reports or Feature requests, use the Issues section. But, if you have questions, you can also use the Issues section.

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

Professional Support

If you require Professional Assistance on your project(s), please contact me.