DEV Community

Usaid
Usaid

Posted on

1 2

website not running on express(), need help.

Trying to run website on express server but it fails to get the styles and only shows the html file, i have included the stylesheet inside the html file, any ideas why ?

Top comments (2)

Collapse
 
0xkoji profile image
0xkoji

hard to point out an issue you have without seeing the code, but my guess is a MIME setting.
This might be useful.

stackoverflow.com/questions/174785...

Collapse
 
grafov_nikita profile image
Nikita Grafov

Maybe check that CSS and other static files are served by the server.

expressjs.com/en/starter/static-fi...

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay