pm2 serve not loads pre-compressed build static files (css, js... etc.)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
I dont know what the hack is going on with pm2 serve...
On local, on production server side my pre-compressed files are not loading, only uncompressed ones.
So when i run command "pm2 serve build" on local, in my browser network tab i can see response header info like:

but when i run "serve build" everything is fine:

So im asking why this bug not yet reported and fixed??? This exists in older versions of pm2 too... Nobody compresses his build content who uses pm2 or what?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior with the reported pm2 serve build command and compare it with serve build in a browser network tab. Inspect the pm2 static-serving entry point to determine why pre-compressed CSS and JavaScript files are not loaded, then verify that response headers and served content match the working serve build case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100