express icon indicating copy to clipboard operation
express copied to clipboard

static file like .css and .js not load error 404

Open adventuretocode opened this issue 1 year ago • 10 comments

express js version : "express": "^4.18.2",

app.use(Express.static('public'));

express folder with app.js server code same dir i have public folder.

public/

  • app.js
  • app.css

when i try to access https://mystoreapp.io/app.js https://mystoreapp.io/app.css

getting Error 404

HTTP ERROR 404 ```

adventuretocode avatar Nov 08 '22 13:11 adventuretocode