From 8049f5ba7f4b9fa5c5e359ee0622686dbcecabf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=BCttner?= Date: Wed, 8 Mar 2023 10:34:25 +0100 Subject: [PATCH] docs: add `prerender.ignore` description (#1032) --- docs/content/3.config/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/3.config/index.md b/docs/content/3.config/index.md index 443ba241cc..ef0a6bb78e 100644 --- a/docs/content/3.config/index.md +++ b/docs/content/3.config/index.md @@ -261,10 +261,12 @@ When `cache` option is set, handlers matching pattern will be automatically wrap ### `prerender` -Default: `{ crawlLinks: false, routes: [] }` +Default: `{ crawlLinks: false, ignore: [], routes: [] }` Prerendered options. Any route specified will be fetched during the build and copied to the `.output/public` directory as a static asset. +Any route that starts with a prefix listed in `ignore` will be ignored. + If `crawlLinks` option is set to `true`, nitro starts with `/` by default (or all routes in `routes` array) and for HTML pages extracts `` tags and prerender them as well.