docs: fix index.html.md causing 404 (#12241)
* docs: fix index.html.md causing 404 * update next.js * test * test * test * test * fix revalidate * test * test * test * test * test * test * test * test * clean up
This commit is contained in:
@@ -31,7 +31,7 @@ export async function GET(req: NextRequest, { params }: Params) {
|
||||
return notFound()
|
||||
}
|
||||
|
||||
const filePath = path.join(path.resolve("..", "..", ".."), filePathFromMap)
|
||||
const filePath = path.join(process.cwd(), "..", "..", "..", filePathFromMap)
|
||||
|
||||
if (!existsSync(filePath)) {
|
||||
return notFound()
|
||||
|
||||
Reference in New Issue
Block a user