Skip to content

Commit a10748f

Browse files
committed
fix: incorrect path of middleware nft in setups using base directory
1 parent 67e63ff commit a10748f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build/functions/edge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ const copyHandlerDependenciesForNodeMiddleware = async (ctx: PluginContext) => {
210210

211211
const entry = 'server/middleware.js'
212212
const nft = `${entry}.nft.json`
213-
const nftFilesPath = join(process.cwd(), ctx.distDir, nft)
213+
const nftFilesPath = join(ctx.publishDir, nft)
214214
const nftManifest = JSON.parse(await readFile(nftFilesPath, 'utf8'))
215215

216216
const files: string[] = nftManifest.files.map((file: string) => join('server', file))

0 commit comments

Comments
 (0)