FerryDocs

Publish directory

The publish directory is the folder of a static site that nginx serves.

Edit on GitHub
--publish-dirdistthe value you setRoot directorythe value "."First matchdist, build, out…nginx

You set a directory, for example dist. nginx serves that directory.

1 / 3

Set the publish directory

Terminal
ferry update docs --build-cmd "cd docs && npm ci --include=dev && npm run build" --publish-dir docs/out

What nginx serves

(--publish-dir)With a build stepWith no build step
Set, for example distThat directory. The build fails if it does not exist.That directory
.The full root directory after the buildThe root directory
Not setThe first of dist, build, out, public, _site and site that the build made. The build fails if there is none.See below

Not set, with no build step

Ferry uses the first of these that is true:

  1. The has an index.html: nginx serves the root directory.
  2. One of the six directories has an index.html: nginx serves the first one.
  3. If not, nginx serves the root directory.

On this page