AWS Amplify 404 issue

0

Hi there,

I want to deploy my Hugo site on AWS Amplify, I set up all the settings, but I finally got this:

404

This domain was once hosted on GitHub, and I have completed the migration.

My build config:

version: 1
frontend:
  phases:
    build:
      commands:
        - rm -rf /usr/bin/hugo
        - wget -q https://github.com/gohugoio/hugo/releases/download/v${VERSION_HUGO_NEW}/hugo_extended_${VERSION_HUGO_NEW}_Linux-64bit.tar.gz
        - tar -xvf hugo_extended_${VERSION_HUGO_NEW}_Linux-64bit.tar.gz
        - mv hugo /usr/bin/hugo
        - rm -rf hugo_extended_${VERSION_HUGO_NEW}_Linux-64bit.tar.gz
        - hugo
  artifacts:
    baseDirectory: public
    files:
      - '**/*'
  cache:
    paths: []

Amplify:

Enter image description here

Thanks for your help.

  • Are you sure the domain (allyonsygama.com) is correct? It is not resolving using public DNS servers.

Allonsy
已提問 2 年前檢視次數 57 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南