Closed OliverStenning closed 2 years ago
Hey @OliverStenning
Can you set the baseURL
value to the domain of your netlify website? That should solve this issue
ex: my-website.netlify.app
I've changed the baseURL to my-website.netlify.app and then when I look at the html of the website the link to the CSS is: https://my-website.netlify.app/my-website.netlify.app/css/styles.css
I think this can be solved by adding "https://" at the start
I have trouble locally getting errors and I have no idea how to resolve it. the error says failed to transform "css/styles.css" tried unsuccessful attempts but no luck.
@riseekrthakur Can you try following the instructions here? → #1
Closing due to inactivity
When running a server locally the link to the CSS is generated correctly, however, when built on Netlify the link to the CSS includes the baseURL string. E.g: Running local server: localhost:1313/css/styles.css
Built on Netlify: example.com/example.com/css/styles.css
The workaround I am currently using is to set the baseURL to "/" which fixes it but doesn't address the issue.