# Zola serve works but zola build doesn't (with custom css)

**URL:** <https://zola.discourse.group/t/zola-serve-works-but-zola-build-doesnt-with-custom-css/2400>\
**Category:** Support\
**Created:** [December 3, 2024, 8:53am UTC](https://zola.discourse.group/t/zola-serve-works-but-zola-build-doesnt-with-custom-css/2400 "2024-12-03T08:53:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnatolyBuga](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/anatolybuga/32/1365_2.png) [@AnatolyBuga](https://zola.discourse.group/u/AnatolyBuga)\
**Post date:** [December 3, 2024, 8:53am UTC](https://zola.discourse.group/t/zola-serve-works-but-zola-build-doesnt-with-custom-css/2400/1 "2024-12-03T08:53:37Z")

</div>

The problem is:  
My (open) website uses custom css

> **[GitHub - AnatolyBuga/finestway](https://github.com/AnatolyBuga/finestway)**
>
> Contribute to AnatolyBuga/finestway development by creating an account on GitHub.

Is completely broken when deployed (and locally with zola build):  
[https://anatolybuga.github.io/finestway/](https://anatolybuga.github.io/finestway/)

 ![image](https://global.discourse-cdn.com/free1/uploads/zola1/original/2X/4/46997513815a41f12020cb3354ba3cddd52f36a4.png)

While locally with `zola serve` it works well.

Question:  
Why locally zola serve works while zola build doesn’t ?

There are 2 similar topics  
One topic on the forum mentions base\_url. If I set base\_url to the original example(https–mattimustang.github.io–zola-grayscale), it won’t render my own css. If I set the url where I want to serve my site, it’s all broken:

The other topic mentions wrong content-type, which in my case is:  
content-type:  
text/html; charset=utf-8

---

<div class="post-metadata">

**Author:** ![sal](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/sal/32/1334_2.png) [@sal](https://zola.discourse.group/u/sal)\
**Post date:** [December 3, 2024, 11:52am UTC](https://zola.discourse.group/t/zola-serve-works-but-zola-build-doesnt-with-custom-css/2400/2 "2024-12-03T11:52:45Z")

</div>

I think you should set `gh-pages` branch under `Build and deployment` in the settings of your Github repository. - [https://github.com/AnatolyBuga/finestway/settings/pages](https://github.com/AnatolyBuga/finestway/settings/pages).

---

<div class="post-metadata">

**Author:** ![AnatolyBuga](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/anatolybuga/32/1365_2.png) [@AnatolyBuga](https://zola.discourse.group/u/AnatolyBuga)\
**Post date:** [December 3, 2024, 12:26pm UTC](https://zola.discourse.group/t/zola-serve-works-but-zola-build-doesnt-with-custom-css/2400/3 "2024-12-03T12:26:31Z")

</div>

Thanks @sal , let me try. I see why you suggest this = hrefs point to the non existent url. ILet me try, thanks alot.

---

<div class="post-metadata">

**Author:** ![AnatolyBuga](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/anatolybuga/32/1365_2.png) [@AnatolyBuga](https://zola.discourse.group/u/AnatolyBuga)\
**Post date:** [December 3, 2024, 12:38pm UTC](https://zola.discourse.group/t/zola-serve-works-but-zola-build-doesnt-with-custom-css/2400/4 "2024-12-03T12:38:09Z")

</div>

@sal , thanks alot, that worked indeed! Images are case sensitive , so that was another mistake from me
