'How to deploy a MeteorJS app to AWS Amplify?

I would like to deploy a MeteorJS application to AWS Amplify. I'm struggling to find any resources on how this can be done.

To build the app I've pointed Amplify at my repo and added this amplify.yml.

version: 1
frontend:
  phases:
    preBuild:
      commands:
        - npm install
        - npm install -g meteor
        - export PATH=/root/.meteor:$PATH
        - meteor build dist --allow-superuser
    # IMPORTANT - Please verify your build commands
    build:
      commands: []
  artifacts:
    baseDirectory: dist
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*

This is successfully building and deploying my app however if I try and open the deployed app it shows an empty page.

How can I deploy a MeteorJS app to Amplify?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source