Files
Niklas MischkulnigandGitHub 554b7fe3b0 Turbopack: don't generate next-server.js.nft.json with adapters (#93684)
Adapters don't read these files.

Also added a snapshot test similar to the existing ones to not regress
on function size
2026-05-11 09:13:27 +00:00

10 lines
231 B
JavaScript

import fs from 'fs/promises'
/** @type {import('next').NextAdapter } */
export default {
name: 'next-server-nft',
async onBuildComplete(ctx) {
await fs.writeFile('build-complete.json', JSON.stringify(ctx, null, 2))
},
}