docs: clarify self-hosting
This commit is contained in:
parent
68d756ca34
commit
7ea387bc4c
11
README.md
11
README.md
|
@ -94,12 +94,13 @@ To keep your version of Pinafore up to date, you can use `git` to check out the
|
|||
Pinafore is a static site. When you run `yarn build`, static files will be
|
||||
written to `__sapper__/export`.
|
||||
|
||||
In theory you could host these static files yourself (e.g. using nginx or Apache), but
|
||||
it's not recommended, because:
|
||||
It is _not_ recommended to directly expose these files when self-hosting. Instead, you should use `node server.js` (e.g. with an
|
||||
nginx or Apache proxy in front). This adds several things you don't get from the raw static files:
|
||||
|
||||
- You'd have to set the [CSP](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) headers yourself,
|
||||
< |