nuxt-prerender-routes

Add dynamic routes to your nitro config prerender object
787 4
Install
npm install nuxt-prerender-routes
Latest Version:1.0.5
Vue:3
License:MIT
Last Updated:Jul 30, 2024
Links: GitHub  ·  npm
Maintainer: king0vdeception

Nuxt prerender routes

npm version npm downloads License Nuxt

Features

  • Prerender dynamic routes fetched from your api

Quick Setup

Install the module to your Nuxt application with one command:

npx nuxi module add nuxt-prerender-routes

That's it! You can now use nuxt-prerender-routes in your Nuxt app ✨

Add nuxt-prerender-routes to your nuxt.config modules setup

  modules: [
    'nuxt-prerender-routes'
  ]

Add prerenderRoutes object with prerender option enabled and your's api url to fetch your routes. You can also define a route prefix (optional) with 'routePrefix' option

  prerenderRoutes: {
    prerender: true,
    apiUrl: https://yours-api/url,
    routePrefix: ''
  }

Contribution

Local development
# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release

Version History

Version Released Vue License
1.0.5 ^3.0 MIT
1.0.4 ^3.0 MIT
1.0.3 ^3.0 MIT
1.0.1 ^3.0 MIT