Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For more information, please refer to the relevant AWS Amplify docs.

If you notice that the framework for your app is automatically set to ‘web’ instead of ‘Next.js - SSR', please scroll down to the ‘Common errors' section of this document and follow the instructions for updating the framework manually. The common errors section also has instructions for updating the app platform manually - on rare occasions Amplify will automatically set it to ‘Web’ when it should be ‘Web compute’.

Setting up environment variables

...

  • If you encounter the following error (or similar) when deploying DCB Admin, there is a simple fix: CustomerError: It looks like you are attempting to deploy a Next.js SSR app, but your app's framework looks wrong. Please update your app's framework to 'Next.js - SSR' to ensure that your app is deployed correctly.

    • Solution: Run the following command in CloudShell. This will update the framework manually:

      • aws amplify update-branch --app-id <value> --branch-name <value> --framework 'Next.js - SSR'

      • The value of app-id can be found under ‘App ARN’ in App settings → General. It is the value at the end of the ARN (highlighted in the screenshot)

        image-20240314-142025.png
  • If you deploy successfully, but encounter a 404 Not Found page when you click on the branch URL, your app platform may have been set incorrectly by Amplify (see this issue - it should be Web compute). To fix this, run this command aws amplify update-app --app-id <APP_ID> --platform WEB_COMPUTE --region <REGION>

  • If you encounter an error connecting to the repository, please contact Knowledge Integration.

  • Amplify docs can be found here https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html