Fix errors, bugs and known vulerabilities

This commit is contained in:
2026-03-23 06:58:41 +01:00
parent 0308ea32ec
commit 567fb4f746
15 changed files with 84 additions and 52 deletions
@@ -1,7 +1,6 @@
import type { FC } from "react";
import grabDirNames from "../../../utils/grab-dir-names";
import type {
BundlerCTXMap,
BunextPageModule,
BunxRouteParams,
GrabPageComponentRes,
@@ -34,7 +33,7 @@ export default async function grabPageErrorComponent({
const bundledMap = match?.filePath
? global.BUNDLER_CTX_MAP?.[match.filePath]
: ({} as BundlerCTXMap);
: undefined;
const module: BunextPageModule = await import(filePath);
const Component = module.default as FC<any>;
@@ -72,7 +71,7 @@ export default async function grabPageErrorComponent({
component: <DefaultNotFound />,
routeParams,
module: { default: DefaultNotFound },
bundledMap: {} as BundlerCTXMap,
bundledMap: undefined,
serverRes: {
responseOptions: {
status: is404 ? 404 : 500,