Open V01D-NULL opened 3 months ago
Are you mixing cdk-nextjs-standalone
with open-next
? The output src folder looks sus: src53762765
Yes, actually. version ^4.0.0-beta.28
We use cdk-nextjs-standalone in our code and invoke open next in the buildCommand npx open-next@2.3.7 build
so quick update... buildCommand: 'npm run build && npx open-next@2.3.7 build'
seems to work as a temporary fix
Where the build script is just next build
Previously buildCommand
was just npx open-next@2.3.7 build
Codepipeline logs:
I'm in the process of migrating our pages router to the new app router, all I changed was the bare minimum. New useRouter hooks in a global component, adding a layout.tsx, metadata, etc.
After doing that I've seen our builds fail on staging when running
npx open-next@2.3.7 build
. Building vianext build
works fine, so this is breaking somewhere in open-next.Any ideas?