ProjectEvergreen / greenwood

Greenwood is your workbench for the web, embracing web standards from the ground up to empower your stack from front to back.
https://www.greenwoodjs.io
MIT License
96 stars 9 forks source link

not found static assets are returning 500 status code when running the `serve` command #1102

Closed thescientist13 closed 1 year ago

thescientist13 commented 1 year ago

Type of Change

Bug

Summary

Noticing that when running greenwood serve and accessing a static asset that doesn't exist, the browser is getting a 500 error instead of a 404.

Screen Shot 2023-04-29 at 10 41 26 AM

Details

In the terminal there is also an ugly error as well

[Error: ENOENT: no such file or directory, open '/Users/analogstudios/Workspace/analogstudios/repos/www.blissfestri.com/public/foo.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/analogstudios/Workspace/analogstudios/repos/www.blissfestri.com/public/foo.png'
}