Question

How to link stylesheet and js files to App Platform static site

I’ve setup a static site on app platform using Github. It recognises my html file but not the css or js files I have. My css file is under resources/css/style.css and the href=“resources/css/style.css”. I don’t why it won’t link.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

My guess is that path to the file needs to be adsjusted.

I could suggest checking your browser’s web console to see the exact error that is showing there. Also if you access the http://app_url/resources/css/style.css do you see the file as normal?

Another thing that I could suggest is using the App platform interactive console to connect to the app and check if the files are actually there.

Regards, Bobby