How can I serve static files with 404 redirection by PM2?

Viewed 2698

I already know that there is a simple command to serve static folder by PM2:

pm2 serve <path> <port>

But how can I add 404 redirection to it? e.g. redirect to 404.html while that happends. Can't find that on Google & PM2 doc.

1 Answers
Related