Skip to content

Commit

Permalink
update 'parseAWSExports', update singleton types
Browse files Browse the repository at this point in the history
  • Loading branch information
david-mcafee committed Sep 12, 2023
1 parent 2c0b95f commit af905b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions packages/core/src/parseAWSExports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,10 @@ export const parseAWSExports = (
aws_appsync_graphqlEndpoint,
aws_appsync_region,
aws_cognito_identity_pool_id,
// TODO - which category does this fall under?
// aws_cognito_region,
aws_cognito_sign_up_verification_method,
aws_mandatory_sign_in,
aws_mobile_analytics_app_id,
aws_mobile_analytics_app_region,
// TODO - which category does this fall under?
// aws_project_region,
aws_user_files_s3_bucket,
aws_user_files_s3_bucket_region,
aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing,
Expand All @@ -49,6 +45,7 @@ export const parseAWSExports = (
};
}

// TODO: Need to support all API configurations
// API
if (aws_appsync_graphqlEndpoint) {
amplifyConfig.API = {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/singleton/API/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type APIConfig = {
defaultAuthMode?: GraphQLAuthMode;
region?: string;
endpoint?: string;
apiKey: string;
apiKey?: string;
// TODO: switch this when dependency is added:
// modelIntrospectionSchema: InternalModelIntrospectionSchema;
modelIntrospectionSchema?: any;
Expand Down

0 comments on commit af905b7

Please sign in to comment.