Refactor artifacts to use relative directory for build step and retrieval
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import grabRelativePath from "../../utils/grab-relative-path";
|
||||
|
||||
type Params = {
|
||||
req: Request;
|
||||
};
|
||||
@@ -29,7 +31,7 @@ export default async function ({ req }: Params): Promise<Response> {
|
||||
const match = global.BUNEXT_ROUTER.match(referer_url.pathname);
|
||||
|
||||
const target_map = match?.filePath
|
||||
? global.BUNEXT_BUNDLER_CTX_MAP?.[match.filePath]
|
||||
? global.BUNEXT_BUNDLER_CTX_MAP?.[grabRelativePath(match.filePath)]
|
||||
: undefined;
|
||||
|
||||
let controller: ReadableStreamDefaultController<string>;
|
||||
|
||||
Reference in New Issue
Block a user