meteor/hexo-versioned-netlify-redirects

Name: hexo-versioned-netlify-redirects

Owner: Meteor

Description: null

Created: 2018-02-07 12:17:23.0

Updated: 2018-02-07 12:19:48.0

Pushed: 2018-02-07 12:51:08.0

Homepage: null

Size: 5

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

hexo-versioned-netlify-redirects

This Hexo plugin uses a versions array in the Hexo configuration, which has each version on a separate version-x.y.z branch, to generate a Netlify _redirects file (a special file format).

Netlify (already) auto-deploys each branch of a repository to its own special “branch deploy” domain. By using version-x.y.z branches, this deployment should show up at: https://version-x.y.z--your-site-id.netlify.com.

Then, through the use of the _redirects file (which this plugin generates), the master branch domain (i.e. https://your-site-id.netlify.com) will automatically proxy requests which come in on a version path (specifically, /vX.Y.Z/) transparently to the special branch deployment URL.

Sample Hexo configuration
ions:
'1.6.1'
'1.6'
'1.5.1'
ioned-netlify-redirects:
tlify_site_id: your-netlify-site-id

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.