hannoeru / vite-plugin-pages

File system based route generator for ⚡️Vite
MIT License
1.84k stars 127 forks source link

Routes with extensions are not supported. #369

Closed besscroft closed 1 year ago

besscroft commented 1 year ago

Describe the bug

I thought about trying to use the file address as a route, but that seems to give a 404 error. example: http://localhost:3333/od/video -> success! http://localhost:3333/od/video/a.mp4 -> HTTP ERROR 404

Is there any way to solve this? It's working fine without using this plugin, but I use this plugin for development and can't find a solution, thanks!

Reproduction

/

System Info

System:
    OS: Windows 11
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
    Memory: 2.98 GB / 15.79 GB
  Binaries:
    Node: 18.13.0
    npm: 8.19.3
  Browsers:
    Edge: Spartan (44.22621.***), Chromium (109.0.***)
    Internet Explorer: 11.0.***

Used Package Manager

pnpm

Validations

besscroft commented 1 year ago

Problem solved, thanks!