web-infra-dev / rspress

🦀💨 A fast Rspack-based static site generator.
https://rspress.dev
MIT License
1.21k stars 107 forks source link

[Bug]: crash when page not found and using multiVersion #986

Closed jbroma closed 2 months ago

jbroma commented 2 months ago

Version

System:
    OS: macOS 14.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 39.19 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 123.0.6312.123
    Safari: 17.1
  npmPackages:
    rspress: 1.18.2

Details

when using multiVersion, page crashes when accessing non-existent route instead of displaying 404.

Reproduce link

n/a

Reproduce Steps

  1. setup multiVersion
  2. access non-existent route
  3. observe page crash instead of 404