Trying to use custom CSS but get "MIME type ('text/html') is not a supported stylesheet MIME type" error #877
-
So I've got a NextJS app, to which I've added a css file into my public/styles folder. I'm pointing to that in my Giscus settings, like so: And when the page loads, I get the following error at the console: Am I doing this incorrectly? Is there a way to specify the MIME type in the theme? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
You cannot use a relative URL for the theme at the moment (as it will be relative to https://giscus.app), so try specifying a full URL. |
Beta Was this translation helpful? Give feedback.
-
Still defaults to utteranc.es domain?I haven't tested production yet, would be nice to know it works before I push it... |
Beta Was this translation helpful? Give feedback.
-
How to test styles locally? I don't want to push some changes to css files somewhere to see results. Are there any options? May be there is not-frame option to have everything on my side? |
Beta Was this translation helpful? Give feedback.
You cannot use a relative URL for the theme at the moment (as it will be relative to https://giscus.app), so try specifying a full URL.