Skip to content

Commit 308acfe

Browse files
committed
fix: nft reading to work in integration tests
1 parent 182b683 commit 308acfe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/build/functions/edge.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ export const createEdgeHandlers = async (ctx: PluginContext) => {
218218

219219
const fakeNodeModulePath = ctx.resolveFromPackagePath(join('node_modules', fakeNodeModuleName))
220220

221-
const nftFilesPath = join(ctx.nextDistDir, nft)
221+
const nftFilesPath = join(process.cwd(), ctx.nextDistDir, nft)
222+
console.log({ nftFilesPath, nextDistDir: ctx.nextDistDir })
222223
const nftManifest = JSON.parse(await readFile(nftFilesPath, 'utf8'))
223224

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

0 commit comments

Comments
 (0)