Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hosting-on-aws-amplify.md #2781

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions content/en/hosting-and-deployment/hosting-on-aws-amplify.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,28 @@ AWS Amplify is a combination of client library, CLI toolchain, and a Console for

1. Review your changes and then choose **Save and deploy**. The Amplify Console will pull code from your repository, build changes to the backend and frontend, and deploy your build artifacts at `https://master.unique-id.amplifyapp.com`. Bonus: Screenshots of your app on different devices to find layout issues.

1. In case Amplify failed to detect your config, either :
- inside the Amplify dashboard, on the left column, choose "Hosting > Build Settings", edit the file `amplify.yml`, by adding `/public` to `baseDirectory` ; or
- add a file named `amplify.yml` to override the build settings in Amplify ;

1. the default `amplify.yml` ( with `baseDirectory` modifed ) looks like this :
```
version: 1
frontend:
phases:
# IMPORTANT - Please verify your build commands
build:
commands: []
artifacts:
# IMPORTANT - Please verify your build output directory
baseDirectory: /public
files:
- '**/*'
cache:
paths: []
```


## Using a newer version of Hugo

If you need to use a different, perhaps newer, version of Hugo than the version currently supported by AWS Amplify:
Expand Down