diff --git a/fern/products/docs/pages/enterprise/self-hosted-set-up.mdx b/fern/products/docs/pages/enterprise/self-hosted-set-up.mdx index bb0eafa11..4a58908c5 100644 --- a/fern/products/docs/pages/enterprise/self-hosted-set-up.mdx +++ b/fern/products/docs/pages/enterprise/self-hosted-set-up.mdx @@ -93,5 +93,20 @@ instances: You can now deploy the image to your own infrastructure, allowing you to host the documentation on your own domain. - + + +If you need to serve documentation from a subpath (for example, `https://example.com/docs` instead of `https://example.com`), configure the base path using the `NEXT_PUBLIC_BASE_PATH` environment variable: + +```bash +docker run -p :3000 -e NEXT_PUBLIC_BASE_PATH=/docs +``` + +Your documentation will be available at `localhost:/docs`. + + +The base path must start with a forward slash and should not end with one. For example, use `/docs` not `docs` or `/docs/`. + + + +