Skip to content

Commit

Permalink
fix(module): do not force prerender index page (#2681)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Jun 25, 2024
1 parent 5672457 commit bad9b73
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,6 @@ export default defineNuxtModule<ModuleOptions>({
nitroConfig.prerender.routes = nitroConfig.prerender.routes || []
nitroConfig.handlers = nitroConfig.handlers || []

// https://github.com/nuxt/nuxt/issues/27490#issuecomment-2162890462
if (nitroConfig.prerender.routes.indexOf('/') === -1) {
nitroConfig.prerender.routes.push('/')
}

// Add server handlers
nitroConfig.handlers.push(
{
Expand Down

0 comments on commit bad9b73

Please sign in to comment.