I am trying to run an OSS LWC app on heroku using SLDS via synthetic shadow dom.
When I run it locally using heroku local web
everything looks great.
When it makes all the way to my Heroku site, I see unstyled garbage with an error message on the chrome console saying "Refused to apply style from 'https://some-app.herokuapp.com/SLDS/styles/salesforce-lightning-design-system.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled."
Any thoughts as to why this might be happening?
Here is my index html and js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>my app</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="shortcut icon" href="/resources/favicon.ico" />
<link rel="stylesheet" type="text/css" href="/SLDS/styles/salesforce-lightning-design-system.css" />
<base href="/" />
</head>
<body>
<my-app></my-app>
</body>
</html>
import '@lwc/synthetic-shadow';
import { buildCustomElementConstructor } from 'lwc';
import MyApp from 'my/app';
customElements.define('my-app', buildCustomElementConstructor(MyApp));
npm run watch
or something other here fails. For me restarting it, did the trick