# Style broken with zola build, while zola serve works fine

**URL:** <https://zola.discourse.group/t/style-broken-with-zola-build-while-zola-serve-works-fine/2296>\
**Category:** Uncategorized\
**Created:** [September 22, 2024, 12:17am UTC](https://zola.discourse.group/t/style-broken-with-zola-build-while-zola-serve-works-fine/2296 "2024-09-22T00:17:27Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Thibault](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@Thibault](https://zola.discourse.group/u/Thibault)\
**Post date:** [September 24, 2024, 1:17pm UTC](https://zola.discourse.group/t/style-broken-with-zola-build-while-zola-serve-works-fine/2296/10 "2024-09-24T13:17:04Z")

</div>

Thank you so much !  
With proper nginx configuration, the css is now used by the website.

Here is my current configuration : `http {  
include mime.types; # Inclusion des types MIME  
default\_type application/octet-stream; # Type par défaut

```
server {
    listen 80;
    server_name 45.90.220.236;

    root /app/public;

    # Serveur principal
    location / {
        try_files $uri $uri/ =404;
    }

    # Servir les fichiers statiques avec les bons types MIME
    location ~* \.(css|js|png|jpg|jpeg|gif|ico)$ {
        try_files $uri =404;
        expires 30d; # Cache les fichiers statiques pour 30 jours
        add_header Cache-Control "public, no-transform";
    }
}

```

}`

I can now start to iterate again on the content. Thanks again \<3

---

_[View the full topic](https://zola.discourse.group/t/style-broken-with-zola-build-while-zola-serve-works-fine/2296)._
