From b20c6c75b9bdd7447f6325dc2859b6f9a81d9c67 Mon Sep 17 00:00:00 2001 From: Nepomuk Leutschacher <864660+nepomuc@users.noreply.github.com> Date: Tue, 7 Jul 2020 16:31:17 +0200 Subject: [PATCH] Update server.js I wanted to route all requests for files in /dir to /dir2 but it didn't work until I figured out that routes only work if the key/url doesn't match any existing file. I added a little hint for this behaviour. --- _src/_includes/snippets/options/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_src/_includes/snippets/options/server.js b/_src/_includes/snippets/options/server.js index 00e2372..04ab9e9 100644 --- a/_src/_includes/snippets/options/server.js +++ b/_src/_includes/snippets/options/server.js @@ -31,7 +31,7 @@ server: { } // Since version 1.2.1 -// The key is the url to match +// The key is the url to match (can't match any existing file yet) // The value is which folder to serve (relative to your current working directory) server: { baseDir: "app",