Skip to content

Nitro v2 plugin causing _shell.html to not build in spa modeΒ #5426

@clawrence121

Description

@clawrence121

Which project does this relate to?

Router/Start

Describe the bug

Hi there, I'm having issues with SPA mode then using the Nitro plugin.

When the plugin is enabled, no _shell.html file is generated, but disabling it _shell.html is generated as expected.
This is using start and router versions 1.132.51 and NPM.

I have also tried with Nitro 3 and I see the same behaviour.

I have also tried changing some of the spa mode prerender settings, and haven't seen it make a difference (eg different mask path).

Your Example Website or App

https://github.com/clawrence121/tss-spa-mode-not-rendering-shell

Steps to Reproduce the Bug or Issue

  1. Clone example repo
  2. Run npm install
  3. Run npm run build, _shell.html is generated
  4. Modify vite.config.ts to enable either Nitro v2 or v3 plugins
  5. Run npm run build, no _shell.html is generated

Expected behavior

_shell.html to be generated when spa mode is enabled with Nitro.

Screenshots or Videos

Image Image

Platform

  • Router / Start Version: 1.132
  • OS: MacOS 15.6.1
  • Bundler: Vite
  • Bundler Version: 7.1.7

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions