Files
Jude GaoandGitHub ec6c710845 feat: build lifecycle hooks - afterProductionCompile (#77345)
Add a `runAfterProductionCompile` hook in next.config.js that executes
after production build compilation finishes, but before running
post-compilation tasks like type checking and static page generation.
This hook provides access to project metadata including the project
directory and build output directory, making it useful for third-party
to collect build outputs like sourcemaps.
2025-05-02 08:44:45 -04:00

10 lines
156 B
TypeScript

export async function after({
distDir,
projectDir,
}: {
distDir: string
projectDir: string
}) {
throw new Error('error after production build')
}