Skip to content

Commit 31b4732

Browse files
committed
Make edge path dynamic
1 parent 240d06e commit 31b4732

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

nsm/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ export const runServer = async ({
111111
: pathOrFunction
112112

113113
if (apiHandler.config?.runtime === "edge") {
114-
// todo: set dynamically
115-
const page = "/api/edge"
114+
const page = resolveResult.asPath
116115

117116
// todo: cache result?
118117
const result = await esbuild.build({

0 commit comments

Comments
 (0)