I just added a CNAME via my hosting provider (Google Domains) to link my Glitch React app (https://panoramic-gleaming-attention.glitch.me/) to my website (www.paigecrum.com). My app works fin on the provided Glitch project URL, but I get a blank page when viewing it on my website, with errors in the console about not being able to load ‘@vite/client’ or ‘@react-refresh’ because of a disallowed MIME type (“text/html”). (See below screenshots). My favicon and the title of my webpage loads in the tab, so I know the CNAME forwarding is working properly.
In Firefox Dev Tools:
(Similar error in Chrome DevTools, but it wouldn’t allow me to insert more than 1 image.)
Has anyone experienced this before and know of any fixes? Is there an additional build step that I need to do for my React apps if using a custom domain that I didn’t realize? Really hoping to not have to pull this down and host elsewhere! Loving Glitch. Thanks!