Closed adeelejaz closed 1 year ago
Hi @adeelejaz 👋🏽 did you try migrating the branch before merging a PR? Also, please provide your app ID so we can further investigate this error.
Hi @hloriana, the merge was needed to get the changes in required for the deployment. Just to add context, the dev branch where the changes were first added, and then deployed to worked successfully. This is the second branch on the project.
App ID: d2gzq6qw599ev8
So I fixed it, just for future reference for people who end up here...
I had to manually run the following command, because even though I ran through the migration through console, the app was still using WEB_DYNAMIC
:
aws amplify update-app --region eu-west-1 --app-id <APP_ID> --platform WEB_COMPUTE
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Before opening, please confirm:
JavaScript Framework
Next.js
Amplify APIs
Authentication, GraphQL API
Amplify Categories
auth, api
Environment information
Describe the bug
I migrated to Next.js 12 using the button in the console. My 'dev' branch deployed automatically after migration and it is working as expected without any errors or issues.
When I tried upgrading my 'main' branch by merging a PR, I got the following error at the start of "Starting SSR Build"
Expected behavior
Build working as expected and deploying like it did on the other branch.
Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response