Unitech / Unitech/pm2

pm2 serve not loads pre-compressed build static files (css, js... etc.)

Open
#5,424 0 comments 0 reactions 0 assignees View on GitHub

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:
image

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

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.