aws-amplify / aws-amplify/amplify-hosting

Feature request: Use custom domain in PR comment for preview link

Open
#2,301 24 comments 67 reactions 0 assignees View on GitHub
feature-request web-previews
Dominant language
Dockerfile
Stars
481
Forks
123
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
When a PR is created, the AWS Amplify GitHub bot comments the preview URL, as added in #264. This is great, except that we are using a custom domain.

![image](https://user-images.githubusercontent.com/14964441/136014627-28835780-4383-41f9-bdce-097ce95fdf6d.png)

So the comment mentions `https://pr-{PR}.{APP_ID}.amplifyapp.com`, while it should be `https://pr-{PR}.example.com`.

This is important for us because our app does not work on the amplifyapp.com domain due to CORS restrictions, so we must use our custom domain.

**Describe the solution you'd like**
Please allow configuring the PR bot to use a custom domain.

Contributor guide

Open the contributing guide

Research direction

Start by locating the AWS Amplify GitHub PR bot implementation and the preview-comment behavior introduced in #264. Trace how the amplifyapp.com preview URL is assembled and how configuration is handled; done means a configured custom domain produces the expected PR preview link in the comment.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, github
Domain
ci-cd, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.