Skip to content

Commit 62c135d

Browse files
authored
fix: correct handling of edge dev utils (#1616)
1 parent 362d5dd commit 62c135d

File tree

1 file changed

+1
-1
lines changed
  • packages/runtime/src/helpers

1 file changed

+1
-1
lines changed

packages/runtime/src/helpers/edge.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ export const writeDevEdgeFunction = async ({
177177
const edgeFunctionRoot = resolve(INTERNAL_EDGE_FUNCTIONS_SRC)
178178
await emptyDir(edgeFunctionRoot)
179179
await writeJson(join(edgeFunctionRoot, 'manifest.json'), manifest)
180+
await copy(getEdgeTemplatePath('../edge-shared'), join(edgeFunctionRoot, 'edge-shared'))
180181

181182
const edgeFunctionDir = join(edgeFunctionRoot, 'next-dev')
182183
await ensureDir(edgeFunctionDir)
183184
await copyEdgeSourceFile({ edgeFunctionDir, file: 'next-dev.js', target: 'index.js' })
184-
await copyEdgeSourceFile({ edgeFunctionDir, file: 'utils.ts' })
185185
}
186186

187187
/**

0 commit comments

Comments
 (0)