express icon indicating copy to clipboard operation
express copied to clipboard

How to serve symlinked static file

Open zwhs-co opened this issue 2 years ago • 0 comments

Hi, I'm using app.use(`/${STATIC_PATH}`, express.static(LOCAL_ROOT_DIR)) to serve static file and it works quite well. However, if the static file is symlinked, it return 404 error.

Is there a way to enable symlinked file via static files in express?

zwhs-co avatar Dec 07 '22 04:12 zwhs-co