MIME type ('text/html') is not a supported stylesh...
# support
a
I followed the https://www.medplum.com/docs/self-hosting/install-on-aws . After running
npx medplum aws deploy-app demo
, and going to the app web page. I get
MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled
in the browser console. How can a define which version of the frontend deploy using
npx medplum aws deploy-app [env name]
? Thanks in advance.
r
Hi @alexisrodgtz , i'm sorry for the inconvience! To help debug, I'll ask to run a few diagnostics
Do you mind running
curl -L your.app.location
and pasting the output?
a
Copy code
curl -L app.location.com
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Medplum</title>
    <meta name="description" content="Medplum: Medical Collaboration" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, minimum-scale=1" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="theme-color" content="#5b2876" />
    <link rel="shortcut icon" type="image/x-icon" href="/assets/favicon-40a461ba.ico" />
    <link rel="apple-touch-icon" href="/img/medplum-logo-512x512.png" />
    <script type="module" crossorigin src="/assets/index-f0d12c84.js"></script>
    <link rel="stylesheet" href="/assets/index-9b7f1ec0.css">
  </head>

  <body>
    <div id="root"></div>
    
  </body>
</html>
I think this issue could be related to the latest of the frontend demo app. I could try to deploy an older frontend version, but I haven't figure out how to do it with the current guide 😓e
r
Ah I see - let me get back to you on that. Ideally, the newest version also works 😅 . But I'll also look into how you may control the version
@alexisrodgtz Thanks for your patience. We're actually pushing a change to the
update-app
command that should fix this. I'll keep you posted with the resolution: https://github.com/medplum/medplum/pull/2571
a
Thank you for the quick response. Will be testing soon.
Tested! It's fixed!! Thanks!
r
Great news !
158 Views