Serve Static file fail
Hi, kindly ask about serve static file issue.
it keeps return 404. My others prj are successfully run without change the method (pic 3)



6 Replies
hi! can you explain what you're trying to accomplish + what your issue is in a little more detail?
Hi, so im doing bun hono vite monorepo prj.
My deploy my prj usually file structure is
/prj/attendance_script/server/
/prj/attendance_script/frontend/
After I done my frontend, I will bun run build:prod (vite --mode production) start build the prj
and output to /prj/attendance_script/frontend/dist
Then I will run "dev": "NODE_ENV=development bun --watch server/index.ts" to host the ./frontend/dist file.



I tried put dist to basic prj and it works, I am not sure why my the other prj just counld not serve the folder


does "prj" mean "project"?
so you're trying to serve
js
and css
files statically, and they're returning a 404
but you can successfully access them in a simple project
after taking a day rest, finally found out the issue, is due to my swagger html using /assets/* to get swagger js, css resources š
Sry for inconvineces.
