Refactor artifacts to use relative directory for build step and retrieval
This commit is contained in:
@@ -9,6 +9,7 @@ import grabPageModules from "./grab-page-modules";
|
||||
import _ from "lodash";
|
||||
import fullRebuild from "../full-rebuild";
|
||||
import isDevelopment from "../../../utils/is-development";
|
||||
import grabRelativePath from "../../../utils/grab-relative-path";
|
||||
|
||||
type Params = {
|
||||
error?: any;
|
||||
@@ -62,7 +63,8 @@ export default async function grabPageErrorComponent({
|
||||
|
||||
const file_path = match.filePath;
|
||||
|
||||
const bundledMap = global.BUNEXT_BUNDLER_CTX_MAP?.[file_path];
|
||||
const bundledMap =
|
||||
global.BUNEXT_BUNDLER_CTX_MAP?.[grabRelativePath(file_path)];
|
||||
|
||||
const page_component = await grabPageModules({
|
||||
file_path: file_path,
|
||||
|
||||
Reference in New Issue
Block a user