Giter Site home page Giter Site logo

Comments (5)

github-actions avatar github-actions commented on May 27, 2024

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!

from amplify-hosting.

kvramyasri7 avatar kvramyasri7 commented on May 27, 2024

Any update? trying to do the same and few folks are reaching out to ME!

from amplify-hosting.

kvramyasri7 avatar kvramyasri7 commented on May 27, 2024

cc: @Milan-Shah @chrisbonifacio

from amplify-hosting.

kvramyasri7 avatar kvramyasri7 commented on May 27, 2024

Ummmm, oops have not realized have opened a duplicate copy/paste issue sorry u guys !!!!

from amplify-hosting.

yafimvo avatar yafimvo commented on May 27, 2024

Ummmm, oops have not realized have opened a duplicate copy/paste issue sorry u guys !!!!

@kvramyasri7

Thanks for bumping it up! I'm still waiting for a better solution since the CI/CD is quite a mess.

Maybe a quick solution would be allowing to update specific env params.

this way I can write a small github action script that runs whenever I want to deploy NextJS to Amplify (I can do it now but I need to share all of my Amplify secrets).

Something like this:

  1. Change the platform
aws amplify update-app --app-id <my-app-id> \
    --platform WEB_COMPUTE 
    --region <my-region>
    --update-environment-variables AMPLIFY_MONOREPO_APP_ROOT=nextjs
  1. push to my main nextjs branch branch, i.e., main_nextjs_branch, to invoke the build on Amplify

  2. After a successful build - return the platform to WEB

aws amplify update-app --app-id <my-app-id> \
    --platform WEB 
    --region <my-region>
    --update-environment-variables AMPLIFY_MONOREPO_APP_ROOT=react

Note I tried to create a conditional variable but it doesn't work for AMPLIFY_MONOREPO_APP_ROOT so fixing this might be also useful.

from amplify-hosting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.