Fixed notfound headers, r2storage
This commit is contained in:
+3
-2
@@ -58,8 +58,9 @@ import { buildRobots, buildSitemapEntries } from '../seo/index.js';
|
||||
});
|
||||
/**
|
||||
* The page assigned as 404 in System Pages (or null → built-in fallback).
|
||||
* For app/not-found.tsx; never throws. Locale comes from the x-locale header
|
||||
* set by createProxy (not-found.tsx receives no params).
|
||||
* For app/not-found.tsx; never throws. not-found.tsx receives no params and
|
||||
* must NOT read headers() (breaks SSG/ISR) — call this for every configured
|
||||
* locale and let <LocaleView> (client) pick the one from the URL. See pages.md.
|
||||
*/ const getNotFoundPage = cache(async (locale)=>{
|
||||
try {
|
||||
const payload = await getCachedPayload();
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user