Skip to content

Commit

Permalink
Update pre-deployment-pull.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kaustavghosh06 authored and edwardfoyle committed Nov 21, 2020
1 parent 36e2417 commit 4b46167
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/amplify-cli/src/pre-deployment-pull.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export async function preDeployPullBackend(context: $TSContext, sandboxId: strin
}

// Replace base schema with the schema configured in Backend-manager app
const schema = resJson.schema;
let schema = resJson.schema;
schema = schema.replace(/\@auth\(rules\: \[\{allow\: private\, provider\: iam\}\]\)/g, "");

replaceSchema(schema);

// Generate models
Expand Down

0 comments on commit 4b46167

Please sign in to comment.