I have these following files in my folder. I want to show the public folder from index.js using express. At first, I used app.use(express.static('public')) and it works on my localhost but when I deployed it it doesn't work. Can anyone show me how to do this?
(in case the pic doesn't work:
public folder(index.html,style folder,js folder)
.gitignore
.env
index.js)