title: deploy next.js to amplify using yarn
body: <p>amplify.yaml</p>
  <pre><code>version: 1
  frontend:
  phases:
      preBuild:
      commands:
          - yarn install
      build:
      commands:
          - yarn run build
  artifacts:
      baseDirectory: .next
      files:
      - '**/*'
  cache:
      paths:
      - node_modules/**/*
  </code></pre>
  <p>I am trying to deploy my next.js application aws amplify.
  I am using yarn instead of npm</p>
  <p>Build is success. but it says</p>
  <pre><code>This dev.polyverse.app page can’t be foundNo web page was found for the web address:
  https://dev.polyverse.app/
  HTTP ERROR 404
  </code></pre>
  <p>Please take a look.</p>