Hello! I’m very new to Kinsta but got to deploy a simple HTML test page with my domain configured. Really good experience! The thing is though, I added a style.css file to my github repo and updated the HTML file to include it, but when loading the site after deploy it seems to be ignoring the CSS file.
I read mention of being able to upload my own HTML, CSS and JS files in the documentation so I expected the repo’s root to be the relative path origin for the CSS file. Of course, this is just me assuming, but I’d like some guidance on how I can refer to other files in my repo so that the HTML loads properly.
To add some more information for debugging, the http request for style.css is returning 404, but I checked the file is correctly named in Github.
Do I need a build command and use a SSG? I would really appreciate if I could keep this barebones approach.
Hi @oliveski ! Welcome to the Community and congrats on getting your first HTML page deployed, that’s a great start!
Regarding your style.css issue, if the browser is returning a 404, it likely means the file isn’t being deployed to the correct location, or the HTML isn’t referencing it properly.
Could you please share a screenshot of your current setup so we can take a closer look?
Additionally, may I ask for the name of the company or website you’re working on?
Kindly send your response via direct message.
Hi @oliveski, thanks for sharing your site and MyKinsta account.
I checked your static site configuration, and everything appears to be set up correctly. The style.css file is loading properly, and I am not seeing any 404 error.
Just as an update to the thread for future reference someone might need, the solution was to disable proxying for my CNAME DNS records in Cloudflare and purging Cloudflare’s cache as suggested by Merineth. Thanks a lot for the help!