Skip to content

Is amplify_outputs.json safe in client code + should we gitignore it

0

Hello, I am working on a next.js + amplify gen 2 project and confused with amplify_outputs.json.

  1. If we gitignore it, how are we able to deploy on Amplify and have frontend connected to backend

  2. If we do not gitignore it and thus keep it in deployed client code, is this safe? Is there no sensitive information here?

asked a year ago288 views

1 Answer
1

Hi,

The amplify_outputs.json file should be git ignored and is git ignored by default. This file can be generated based on your backend in the build time by running the command npx ampx pipeline-deploy or npx ampx generate outputs.

AWS
SUPPORT ENGINEER

answered a year ago

  • and amplify_outputs.json is safe in client code?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.