Add ability to control available pages

This commit is contained in:
Weves
2024-03-31 21:42:30 -07:00
committed by Chris Weaver
parent 15f7b42e2b
commit a4869b727d
17 changed files with 399 additions and 152 deletions

View File

@@ -24,13 +24,7 @@ const nextConfig = {
// In production, something else (nginx in the one box setup) should take
// care of this redirect. TODO (chris): better support setups where
// web_server and api_server are on different machines.
const defaultRedirects = [
{
source: "/",
destination: "/search",
permanent: true,
},
];
const defaultRedirects = [];
if (process.env.NODE_ENV === "production") return defaultRedirects;