-
Notifications
You must be signed in to change notification settings - Fork 116
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
No option to use existing environment for preview #448
Comments
@brignano is your repo private? The backend PRs are only enabled for private Git repos. |
Thanks for the quick reply @swaminator. Originally, my repository was public but, after noticing pull request previews weren't being triggered, I re-read the documentation and updated my repository to be private. After doing so, I can see pull request previews being successfully triggered but I do not have an option to set the Backend environment anymore. |
@brignano: Try reauthenticating your app. Go to |
@swaminator I did try re-authenticating my app prior to opening this issue without any success, and tried again today based on your feedback, but unfortunately I'm still not able to set the Backend environment. |
Please let me know if there's anything else I should/can try to resolve this issue or if there's anymore information I can provide you to help debug it. |
Hi @brignano , what do you see when you connect a new app of your repo? |
Hi @Joycehao19 , sorry I lost track of this issue but noticed it was moved from pending triage to pending release. Is there anything more from my end I can do to help the team debug this? |
I am running into the same issue. My app has always been private. I created a new app from the same repo, and still don't see the option to use an existing environment when enabling previews. This is a big inconvenience because building the environment from scratch takes a long time or fails entirely and I would really like to simply use my dev environment. |
Interesting, I accidentally deleted my backend so I rebuilt the app from scratch using the Amplify CLI, but didn't push anything until all services were added and this time the Amplify Console recognized my app's framework as a React-Amplify (whereas previously it only said React) and now I get that option. Hope this helps someone else. |
I really don't want to recreate my entire app to enable this feature, but it would be really convenient to have. I was also seeing an option to assign a backend to the branch autodetection feature and now it's gone. 😕 |
Agreed, @ianmartorell. Very kind of @jemucino to document this workaround, even I previously followed the same steps as a hot fix for this issue, but I hope we are still interested in fixing the root cause because it seems to be impacting multiple users and there is no real mitigation strategy other than to recreate everything which I can't imagine will work for everyone. As per the related issue (#363),
Originally posted by @Joycehao19 in #363 (comment) |
@brignano we're going to revisit this and give a proper update this week. |
@jemucino I tried to replicate what you did but I still have "React" instead of "React-Amplify" as "Framework" in the app's details. EDIT: I deployed a fullstack amplify app (Host web app > From fullstack samples > Authentication Starter) and now I get "React - Amplify" as "Framework". EDIT2: So I did some checks and I now have options to select a default backend Previews sectionApp details section |
On this page, you can see this picture On my side, I can't find the option "From scratch" anymore |
So after doing some tests, I found the solution. It correctly detects it as a fullstack amplify app. EDIT: You need at least to version the file {
"providers": [
"awscloudformation"
],
"projectName": "<PROJECT_NAME>",
"version": "3.0",
"frontend": "javascript",
"javascript": {
"framework": "react",
"config": {
"SourceDir": "src",
"DistributionDir": "build",
"BuildCommand": "npm run-script build",
"StartCommand": "npm run-script start"
}
}
} |
I am hitting this same issue. Is there no easy way to tell amplify that I changed my mind from a static site to a full stack app? |
AFAIK, that's the only way. |
I am hitting this same issue. My project was working fine.Suddenly it stopped working. Project-config.json has been versioned for some time. I tried to reconnect my repository. but not working. New Project Creating is working fine. |
Same here, it's been now some days (maybe weeks) that options related to Amplify fullstack (use same backend for previews...) have disappeared. |
This problem has resurfaced for me. I am unable to see the backend options for previews and it looks like my app no longer recognizes the framework at all: @aws-amplify-ops you need to do something about this. The only way to get everything to work again is to create a new app from the repo, but I frankly do not want to deal with all the work it will take to recreate my settings and backends. If my app was already in production this would be pretty unacceptable. |
For anyone else who comes across this before Amplify devs do anything about it, this worked for me:
|
@jemucino Thank you, this works! |
Resolving due to age - please re-open if you are still experiencing issues. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
Not sure if this is related to #363 or not but, I don't see any option to configure a default backend for previews in my console anymore. Is that the expected behavior?
I checked the latest AWS Amplify - Console User Guide and Page 45 seems to indicate that I should expect the view pictured below to have an extra column labeled Backend environment.
For some context- When I originally setup Amplify console, I saw this option there but opted to create new environments for each pull request. After noticing that setting up new backend environments for every preview extended the build time, I provisioned a dedicated environment for previews but when I went back to manage the preview settings again this option was gone.
The text was updated successfully, but these errors were encountered: