CSS won't render when hosted, works well locally

my UI code struture is src>homepage.js, homepage.css, login.js, login.css, register.js, register.css.
Works well locally, but when hosted and upon checking the SOURCE on vercel, my CSS wont show up. Also, when visiting the deployed link, it won’t display with styling.

https://wealthwatch-9weah0ysr-shivang-raikars-projects.vercel.app/login
https://wealthwatch-9weah0ysr-shivang-raikars-projects.vercel.app/register

Hey, @shivangraikar! Welcome to the Vercel Community :smile:

I can’t access your domain, could you share the deployment URL with us?

In case it’s helpful, sharing similar posts by community members:

GitHub repo for reference: https://github.com/shivangraikar/Portfolio-Optimizer
Deployment URL: Wealth Watch

@pawlean Please find the links to my repo and deployment in the REPLY. Thanks for your help!

I can see CSS rendered :smile:

What are you seeing?

This is the hosted app:

Locally, it is styled.

This looks styled to me. I’m guess you’re expecting it to look different though? Do you have a screenshot of how it should look?

1 Like

I’m having this same issue. It works locally, in preview deployment, but not in production deployment.

Production:

Preview:
https://center-portal-v1-rhm5iyvdq-good-labs.vercel.app/login

Doesn’t make any sense to me

Hey, Grant! Sorry to hear you’re encountering the same issue.

How did you get on with these?

I had an issue with the path to the CSS being rendered, make sure you double check that. Your site returns a 404 error that is due the file not being located, try renaming the file.

1 Like

Hi Pauline, its happening in incognito, different browsers, and on my phone. Its very hard to debug since its not happening locally.

It looks like none of the css is even showing up in the sources tab in the browser