DEV Community

Discussion on: Multiple Frontends with AWS Amplify

Collapse
 
agapaudi profile image
Mau Peon

Hi, How can you deploy different frontends with same backend. Amplify only let me use same repository with multiple branches, can I use multiple repositories?

Collapse
 
railwaygundora profile image
RailwayGunDora

That's an issue, thanks for bringing it up. You actually need to be in the same repo and have different branches there.

Collapse
 
adnanraml profile image
Adnan

I think this link answer your question
docs.amplify.aws/cli/teams/multi-f...

Collapse
 
a9udn9u profile image
Quan Gan

That link doesn't answer Mau's question.

By "deploy" if you mean running amplify publish to deploy to Amplify's static hosting then the answer is no, you can't publish frontends in different repositories. Even if the Amplify cli allows you to do that, your repos will override each other.

Thread Thread
 
adnanraml profile image
Adnan

Hi,
yes I was having the same question you have.
I think the solution is to add multiple branches in the frontend envirmoent and do the sub-domain configration with amplify framework in the console .