From 91897191b6bc039f662381885a6543bc932291b0 Mon Sep 17 00:00:00 2001 From: Darragh Grace Date: Fri, 27 Apr 2018 17:13:42 +0100 Subject: [PATCH] Adding info for Hosting Static HTML Pages due to recent css changes (#611) Adding info for Hosting Static HTML Pages --- docs/getting-started-publishing.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/getting-started-publishing.md b/docs/getting-started-publishing.md index a2d671c1b2..ea000d8255 100644 --- a/docs/getting-started-publishing.md +++ b/docs/getting-started-publishing.md @@ -21,6 +21,8 @@ At this point, you can grab all of the files inside the `website/build` folder a > For example, both Apache and nginx serve content from `/var/www/html` by default. That said, choosing a web server or provider is outside the scope of Docusaurus. +> When serving the site from your own web server, ensure the web server is serving the asset files with the proper HTTP headers. CSS files should be served with the `content-type` header - `text/css`. In the case of nginx, this would mean setting `include /etc/nginx/mime.types;` in your `nginx.conf` file. See https://github.com/facebook/Docusaurus/issues/602 for more info. + ### Hosting on a Service: * [GitHub Pages](#using-github-pages)