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
When trying to deploy my medusa admin backend on Railway, the dashboard doesn't load. It works on local development. But the issue seems to persist when deployed. I'm only able to recreate this on localdev when I set autoRebuild: false on first medusa start after a clean build. But if I set autoRebuild: true after the first build and then start the backend the following starts work properly even if I set autoRebuild: false afterwards. But when I push changes and a new deployment starts, all I get is this:
The console log prints:
Refused to apply style from 'https://aesthetix-backend.up.railway.app/assets/index-9853bef1.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
index-d61dff85.js:1
Failed to load resource: the server responded with a status of 404 ()app:1
Refused to apply style from 'https://aesthetix-backend.up.railway.app/assets/index-9853bef1.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
And here's the backend log, no indication of anything wrong here tho:
Server is ready on port: 9000
::ffff:10.10.10.12 - - [02/Apr/2024:22:08:16 +0000] "GET /health HTTP/1.1" 200 2 "-" "Go-http-client/1.1"
103.91.128.224 - - [02/Apr/2024:22:17:49 +0000] "GET / HTTP/1.1" 404 139 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
103.91.128.224 - - [02/Apr/2024:22:17:51 +0000] "GET /app HTTP/1.1" 200 446 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
103.91.128.224 - - [02/Apr/2024:22:17:51 +0000] "GET /assets/index-9853bef1.css HTTP/1.1" 404 164 "[https://aesthetix-backend.up.railway.app/app"](https://aesthetix-backend.up.railway.app/app%22); "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
103.91.128.224 - - [02/Apr/2024:22:17:51 +0000] "GET /assets/index-d61dff85.js HTTP/1.1" 404 163 "[https://aesthetix-backend.up.railway.app/app"](https://aesthetix-backend.up.railway.app/app%22); "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
103.91.128.224 - - [02/Apr/2024:22:17:53 +0000] "GET /assets/index-9853bef1.css HTTP/1.1" 404 164 "[https://aesthetix-backend.up.railway.app/app"](https://aesthetix-backend.up.railway.app/app%22); "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
When trying to deploy my medusa admin backend on Railway, the dashboard doesn't load. It works on local development. But the issue seems to persist when deployed. I'm only able to recreate this on localdev when I set
autoRebuild: false
on firstmedusa start
after a clean build. But if I setautoRebuild: true
after the first build and then start the backend the following starts work properly even if I setautoRebuild: false
afterwards. But when I push changes and a new deployment starts, all I get is this:The console log prints:
And here's the backend log, no indication of anything wrong here tho:
And here's my medusa-config.js:
I figured it might have something to do with railway looking in the wrong directory for static assets so I tried changing index.js to include
still no luck, so I changed the nixpacks.toml to include
Also no luck.
Can anyone please help me? This problem seems to come and go on its own every now and then, not so much on localdev as much as with deployment.
Here are my network request headers:
![Screenshot 2024-04-03 at 4 44 39 AM](https://private-user-images.githubusercontent.com/42804706/318980242-6198e673-a430-4ac0-bbdb-60f61764b5ed.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2MzkwMzgsIm5iZiI6MTcyNDYzODczOCwicGF0aCI6Ii80MjgwNDcwNi8zMTg5ODAyNDItNjE5OGU2NzMtYTQzMC00YWMwLWJiZGItNjBmNjE3NjRiNWVkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI2VDAyMTg1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRmNDllZDBiZDIwMzdmOTEyNjMwMjZhOWMwZGZlYTJjY2QzYzI3Mjg5NDdlYzA5OTYxYjQyZDA4YzgyMjUwMTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6-wVYPOOM4zyqdXgozBl33jD3SKNkJ2WKbNsnOkz7FI)
![Screenshot 2024-04-03 at 4 45 07 AM](https://private-user-images.githubusercontent.com/42804706/318980329-9b2573f8-13a5-4ada-b0cb-e56794f7e96b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2MzkwMzgsIm5iZiI6MTcyNDYzODczOCwicGF0aCI6Ii80MjgwNDcwNi8zMTg5ODAzMjktOWIyNTczZjgtMTNhNS00YWRhLWIwY2ItZTU2Nzk0ZjdlOTZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI2VDAyMTg1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYyYjk1MjRkZDlkMzdiMzFlZWJkYzg1NjFlMmEyMDc5NTgxMTk4NmY4OGU3Njg2ZDVmYjg0OTE2YTYwZmMwNjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tqi20qxpsY7z_URz3YvAaCV9-AjaDECFUHIQrBJc1Ks)
The text was updated successfully, but these errors were encountered: