Skip to content

Commit fed3e9c

Browse files
committed
fix: copy src file not compiled
1 parent 50ca76e commit fed3e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/helpers/edge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const copyEdgeSourceFile = ({
8181
file: string
8282
edgeFunctionDir: string
8383
target?: string
84-
}) => fs.copyFile(join(__dirname, '..', 'templates', 'edge', file), join(edgeFunctionDir, target ?? file))
84+
}) => fs.copyFile(join(__dirname, '..', '..', 'src', 'templates', 'edge', file), join(edgeFunctionDir, target ?? file))
8585

8686
// Edge functions don't support lookahead expressions
8787
const stripLookahead = (regex: string) => regex.replace('^/(?!_next)', '^/')

0 commit comments

Comments
 (0)