Skip to content

Commit a1a011e

Browse files
committed
Note
1 parent d40954f commit a1a011e

File tree

1 file changed

+2
-1
lines changed
  • packages/@apphosting/adapter-nextjs/src

1 file changed

+2
-1
lines changed

packages/@apphosting/adapter-nextjs/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ const adapter: NextAdapter = {
4242
// TODO override config for production build
4343
return config;
4444
},
45+
// This fires before standalone is bundled, so we need to pick things back up after build in bin/build.ts
46+
// FEEDBACK: can we get a hook after bundle?
4547
async onBuildComplete(context) {
4648

4749
const nextBuildDirectory = context.distDir;
@@ -50,7 +52,6 @@ const adapter: NextAdapter = {
5052
await addRouteOverrides(nextBuildDirectory, context.outputs.middleware.config.matchers);
5153
}
5254

53-
// TODO standalone is not bundled yet...
5455
const outputBundleOptions = populateOutputBundleOptions(
5556
context.repoRoot,
5657
context.projectDir,

0 commit comments

Comments
 (0)