Closed MjdBh closed 2 years ago
Hi @MjdBh 👋 thank you for raising this issue. I'm going to transfer this issue over to the console repo because it has more to do with deployment than the javascript library and for better support in that knowledge area.
Hi :wave:, thanks for opening! While we look into this...
If this issue is related to custom domains, be sure to check the custom domains troubleshooting guide to see if that helps. Also, there is a more general troubleshooting FAQ that may be helpful for other questions.
Lastly, please make sure you've specified the App ID
and Region
in the issue!
Hi @MjdBh 👋🏽 Can you check your build settings to make sure the baseDirectory
is set to build
? If it's set to .next
or out
then Amplify will treat your app as an SSR app which can cause deployment to fail if your application isn't SSR.
HI, @hloriana thank you for your response. Yes, the base directory is correct. we rolled back any changes and didn't change the main branch. But all environment deploy failed.
@MjdBh try following this FAQ guide to change from SSR to SSG: https://github.com/aws-amplify/amplify-console/blob/main/FAQ.md#convert-an-ssr-app-to-ssg. It should tell Amplify to build a static site and not look for SSR resources to generate.
The problem is it. We didn't change this env to SSR. we tested on other environments and another branch why why our main branch has this issue.
@MjdBh what is your AppID and region?
@hloriana my region is ca-central and AppID is dmzn15fe65z58.
@MjdBh what was the solution, even i am facing this issue.
@shubhadip I used the following command and it worked for me.
aws amplify update-app --app-id
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.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
GraphQL API
Amplify Categories
auth, storage, function, api
Environment information
Describe the bug
Our application is a react web application.it was working properly. I another branch from the main branch we applied Nextjs so all branch's environment deploys failed. We rolled back this branch and deleted it but didn't fixed it. We cleared deploy and build cache also created a new environment but didn't resolve it.
Expected behavior
After a successful build, it should deploy correctly.
Reproduction steps
You can redeploy a failed deploy in the build history.
Code Snippet
Log output
aws-exports.js
/ eslint-disable / // WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.
const awsmobile = { "aws_project_region": "ca-central-1", "aws_cognito_identity_pool_id": "ca-central-1:8eb165f8-534b-4542-892b-f620cfc79f8b", "aws_cognito_region": "ca-central-1", "aws_user_pools_id": "ca-central-1_upEtyW5jh", "aws_user_pools_web_client_id": "5of3ee07dfinqeohhg6vkdd6cb", "oauth": {}, "aws_cognito_login_mechanisms": [ "PREFERRED_USERNAME" ], "aws_cognito_signup_attributes": [ "EMAIL" ], "aws_cognito_mfa_configuration": "OFF", "aws_cognito_mfa_types": [ "SMS" ], "aws_cognito_password_protection_settings": { "passwordPolicyMinLength": 8, "passwordPolicyCharacters": [] }, "aws_cognito_verification_mechanisms": [ "EMAIL" ], "aws_user_files_s3_bucket": "vidkids-new100528-stage", "aws_user_files_s3_bucket_region": "ca-central-1", "aws_appsync_graphqlEndpoint": "https://jklasb3lqvgejftrccq6aguxx4.appsync-api.ca-central-1.amazonaws.com/graphql", "aws_appsync_region": "ca-central-1", "aws_appsync_authenticationType": "AMAZON_COGNITO_USER_POOLS", "aws_cloud_logic_custom": [ { "name": "VidkidsFilesApi", "endpoint": "https://kpmroqicea.execute-api.ca-central-1.amazonaws.com/stage", "region": "ca-central-1" } ] };
export default awsmobile;
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
2021-11-30T20:15:30 [INFO]: Beginning deployment for application dmzn15fe65z58, branch:main, buildId 0000000044 2021-11-30T20:15:30 [INFO]: Cannot find any generated SSR resources to deploy. If you intend for your app to be SSR, please check your app Service Role permissions. Otherwise, please check out our docs on how to setup your app to be detected as SSG (https://docs.aws.amazon.com/amplify/latest/userguide/server-side-rendering-amplify.html#deploy-nextjs-app) 2021-11-30T20:15:30 [ERROR]: {"code":"7","message":"No ssrResources.json file"}