Using the 2023 Amazon Linux on Amplify build fails for a few reasons
- Curl is part of the image
- Hugo is also preinstalled
- go is not installed
What I am using to build is below, just wanted to put this out there for anyone else having this issue.
version: 1
frontend:
phases:
preBuild:
commands:
- sudo yum -y install golang # now need sudo for yum commands
- go version # not required just handy
- hugo version # not required just handy
- npm install
build:
commands:
- npm run project-setup
- npm run build
artifacts:
# IMPORTANT - Please verify your build output directory
baseDirectory: /public
files:
- "**/*"
cache:
paths:
- node_modules/**/*
Using the 2023 Amazon Linux on Amplify build fails for a few reasons
What I am using to build is below, just wanted to put this out there for anyone else having this issue.