@hippocrates-holding/nuxt-redirects
A Nuxt module that allows for redirect management using a simple CSV file, it leverages zod-csv
under the hood for validation, handling both punctual and regex redirects. An example CSV file can be found here.
Quick Setup
- Add the
@hippocrates-holding/nuxt-redirects
dependency to your project.
pnpm add -D @hippocrates-holding/nuxt-redirects
yarn add --dev @hippocrates-holding/nuxt-redirects
npm install --save-dev @hippocrates-holding/nuxt-redirects
- Add
@hippocrates-holding/nuxt-redirects
to the modules
section of your nuxt.config.ts
file.
export default defineNuxtConfig({
modules: ["@hippocrates-holding/nuxt-redirects"],
});
That's it! You can now start using it in your Nuxt app. ✨
Development
npm install
npm run dev:prepare
npm run dev
npm run dev:build
npm run lint
npm run test
npm run test:watch
npm run release
License
Licensed under the MIT License.