{"_id":"@alterjs/saber-plugin-netlify-redirect","name":"@alterjs/saber-plugin-netlify-redirect","dist-tags":{"latest":"0.13.0"},"versions":{"0.13.0":{"name":"@alterjs/saber-plugin-netlify-redirect","version":"0.13.0","description":"Automatically generate or update `_redirects` file in your public folder for Netlify.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/chawyehsu/saber.git"},"exports":{".":{"import":"./dist/index.min.mjs","require":"./dist/index.min.cjs"}},"main":"./dist/index.min.cjs","module":"./dist/index.min.mjs","scripts":{"build":"rimraf dist && rollup -c","build:example":"saber build example","lint":"eslint src","prepublishOnly":"npm run build"},"peerDependencies":{"@alterjs/saber":"^0.13.0"},"devDependencies":{"url-join":"5.0.0"},"publishConfig":{"access":"public"},"_id":"@alterjs/saber-plugin-netlify-redirect@0.13.0","gitHead":"df690b0df6c45372cb41b7fa42003f08edc08bf5","bugs":{"url":"https://github.com/chawyehsu/saber/issues"},"homepage":"https://github.com/chawyehsu/saber#readme","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-rxSCvQ6+I7J65ztCcBzR8o3Weti7gU8xIjApFb+bNeyDNzLBqCcKj0IrP4JdevpQmrQZe7RBeHQbMM/7uLlSZQ==","shasum":"90ff350fefc258057afa398a92e2bb7021c3c108","tarball":"https://registry.npmjs.org/@alterjs/saber-plugin-netlify-redirect/-/saber-plugin-netlify-redirect-0.13.0.tgz","fileCount":5,"unpackedSize":5866,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDuCfDi84mJoOXSkG7py81rqDi/TrAZe7QPuLhIUWeTtAiB1Q/l7HfpvSjJypl/E8ardud491sPWMZ7ZRph4E+TxLA=="}]},"_npmUser":{"name":"chawyehsu","email":"su+npm@chawyehsu.com"},"directories":{},"maintainers":[{"name":"chawyehsu","email":"su+npm@chawyehsu.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/saber-plugin-netlify-redirect_0.13.0_1737181432427_0.46750612857327156"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-18T06:23:52.293Z","0.13.0":"2025-01-18T06:23:52.602Z","modified":"2025-01-18T06:23:52.937Z"},"maintainers":[{"name":"chawyehsu","email":"su+npm@chawyehsu.com"}],"description":"Automatically generate or update `_redirects` file in your public folder for Netlify.","homepage":"https://github.com/chawyehsu/saber#readme","repository":{"type":"git","url":"git+https://github.com/chawyehsu/saber.git"},"bugs":{"url":"https://github.com/chawyehsu/saber/issues"},"license":"MIT","readme":"# @alterjs/saber-plugin-netlify-redirect\n\nAutomatically generate or update `_redirects` file in your public folder for [Netlify](https://www.netlify.com/docs/redirects/).\n\n## Install\n\n```bash\nyarn add @alterjs/saber-plugin-netlify-redirect\n```\n\n## Usage\n\nIn your `saber-config.yml`:\n\n```yml\nplugins:\n  - resolve: '@alterjs/saber-plugin-netlify-redirect'\n```\n\nThen you can create redirects using the [`pages.createRedirect`](<https://saber.land/docs/saber-instance.html#pages.createredirect(config)>) API.\n\nSince Netlify automatically rewrites routes like `/about` to `/about.html`, this plugin will also create redirects for all `.html` routes so that `/about` will be redirected to `/about.html` when it does not exist.\n\n## License\n\nMIT.\n","readmeFilename":"README.md"}