aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
461 stars 116 forks source link

is there a way I can host an app in 2 different platforms #3910

Closed kvramyasri7 closed 9 months ago

kvramyasri7 commented 9 months ago

Before opening, please confirm:

Amplify Hosting feature

Not Applicable

Is your feature request related to a problem? Please describe:

I have a monorepo with two applications: one in React and another in Next.js. Each project has its own amplify.yml in its root folder. While I was able to build both applications in my Amplify, the CI/CD doesn't work properly because the app's platform should be 'Web' for React and 'Web compute' for Next.js. As a result, I need to manually change it every time I want to deploy one of them.

Also, a follow up question - is it possible to set the AMPLIFY_MONOREPO_APP_ROOT from one of the configuration files?

Describe how you'd like this feature to work

Generally, my goal is to connect both monorepo folders (react and nextjs) into 1 URL, i.e. https://example.com which is hosted on Amplify. Then, for every example.com/app2, this should show the Next.js app; otherwise, it should show the React app. I was able to achieve this with a rewrite, however, I wonder if there is a simpler way to do it that will also support CI/CD.

github-actions[bot] commented 9 months ago

This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!

kvramyasri7 commented 9 months ago

👍

kvramyasri7 commented 9 months ago

Any update on this one @Milan-Shah @ArseniyKotov ?

kvramyasri7 commented 9 months ago

Any update on this one @Milan-Shah @ArseniyKotov ?

Milan-Shah commented 9 months ago

No updates. We will work closely with our product owner and assign priority to this feature request.

kvramyasri7 commented 9 months ago

Great !!!

mauerbac commented 9 months ago

Hello - @Jay2113 and I have reviewed this

kvramyasri7 commented 9 months ago

Thanks @mauerbac and @Jay2113 ❤️. You guys are really AWEsoummmm.... (Awesome!!!!)

mauerbac commented 9 months ago

Duplicate of https://github.com/aws-amplify/amplify-hosting/issues/3907

github-actions[bot] commented 9 months ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.

kvramyasri7 commented 9 months ago

Ummm. I apologize for duplicating issues u guys thought this is sumyathing else @Milan-Shah @mauerbac @ArseniyKotov and TEAMMM and DXE s @Jay2113