I have a problem with hosting Hugo on Amazon Amplify

I have a problem to host Hugo on Amazon Amplify.
I always get:
“Error: Unable to locate config file or config directory. Perhaps you need to create a new site.”

My Amazon Build is here:

version: 1
frontend:
  phases:
    # IMPORTANT - Please verify your build commands
    build:
      commands: ['cd Solar','hugo']
  artifacts:
    # IMPORTANT - Please verify your build output directory
    baseDirectory: "/Solar/public"
    files:
      - '**/*'
  cache:
    paths: []

Which Hugo version are you using locally?
What is the name of your Hugo configuration file?
Which Hugo version are you using on Amplify?

Hi there. I was using latest version of Hugo. And Amazon Amplify probably does not have the latest.
When I downloaded and installed latest version problem solved.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.