A Mosaic site is a Next.Js app.
To publish a Next.Js App to AWS, deploy your app as a SSR application by following the AWS docs.
Once the basic app has been configured, add the Mosaic specifics.
Add the environment vars to the hosted app via the Amplify console
Add the following build settings
Ensure the Node is set to 16