Versions Compared

Key

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

...

  1. Sign into the AWS management console and open the AWS Amplify console for your organisation. You should see a page with the title ‘All apps’.

  2. For your first time, you will need to create an Amplify application. To do this, select ‘New app’, and then select ‘Host web app’.

  3. On the next page, select GitHub as your repository provider, and click ‘Continue’.

  4. If you are asked to authorize with GitHub, continue, select openlibraryenvironment, and then choose ‘select repositories’ and select dcb-admin-ui from the dropdown.

  5. On the ‘Add repository branch’ page,

    1. select the dcb-admin-ui repository (https://github.com/openlibraryenvironment/dcb-admin-ui)

    2. select the release branch and continue.

  6. On the ‘build settings’ page, select ‘Enable SSR logs' if it is not automatically selected, and then choose ‘Create and use a new service role’ to allow Amplify to automatically create a service role for you.

    1. If you have a previously created service role that you want to use instead, select that option.

  7. Choose ‘Next’, and then click ‘Save and deploy’.

...

Info

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.

...

This 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’.

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

Setting up environment variables

...