You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey so i have a strange problem. I have two react apps on the same express server that I'm serving as two different routes using app.use('/', express.static('./path_to_app')); and app.use('/map', express.static('./path_to_app_two'). there are a lot of other things going on with the express server and everything runs fine accept one react app works fine and the second one, well call map here, is sending css and js files with the wrong MIME type. Let me know what you want to see posted and I can supply it, or if this is a common issue aswell let me know. I have cleaned my cache and reinstalled all required modules. Its just strange that the same code works for one app but not the other.
The text was updated successfully, but these errors were encountered:
Hi @tufanobenjamin, so Express is incorrectly setting MIME type for the second react app? I would like to replicate this issue. Is there a way you can reveal the line of express code that is serving the css/js file?
Hey so i have a strange problem. I have two react apps on the same express server that I'm serving as two different routes using app.use('/', express.static('./path_to_app')); and app.use('/map', express.static('./path_to_app_two'). there are a lot of other things going on with the express server and everything runs fine accept one react app works fine and the second one, well call map here, is sending css and js files with the wrong MIME type. Let me know what you want to see posted and I can supply it, or if this is a common issue aswell let me know. I have cleaned my cache and reinstalled all required modules. Its just strange that the same code works for one app but not the other.
The text was updated successfully, but these errors were encountered: