@alterjs/saber-plugin-meta-redirect
v0.13.0
Published
Generates meta redirect html files for redirecting on any static file host
Downloads
7
Readme
@alterjs/saber-plugin-meta-redirect
Generates <meta> redirect html files for redirecting on any static file host.
Install
yarn add @alterjs/saber-plugin-meta-redirectUsage
In your saber-config.yml:
plugins:
- resolve: '@alterjs/saber-plugin-meta-redirect'In your saber-node.js:
exports.onCreatePages = function () {
this.pages.createRedirect({
fromPath: '/about',
toPath: '/about-us',
})
}Check out the docs for pages.createRedirect.
License
MIT.
