Skip to content

Commit

Permalink
[#45] Fix loading CSS files in docker image
Browse files Browse the repository at this point in the history
CSS files were not loaded in docker image. It is not well solved but could be solved when switching to different build tools (e.g. webpack --> vite)
  • Loading branch information
blcham committed Aug 12, 2024
1 parent a084570 commit 0b76428
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
# what file to server as index
index index.html index.htm;

# TODO not very systematic solution
location ~ ^/(main|s-forms)\.css$ {
root /var/www/public;
}

location / {
# First attempt to serve request as file, then
# as directory, then fall back to redirecting to index.html
Expand Down

0 comments on commit 0b76428

Please sign in to comment.