Hi, I’m quite new to Amplitude. I’m intalling Amplitude to my Saas web application made by react and typescript. I have several envrionments of this application. ex) local, dev(qa), staging, production.
First, I thought having project per environment was the right way( I’m ok to use dev project for local,dev,staging and prod project for production enviornment). But, seeing generated code by Ampli Wrapper, I got confused. This is the fragment of generated code.
export type Environment = 'projectname';
export const ApiKey: Record<Environment, string> = {
projectname: 'xxxxxxxxx'
};
This shows environment = project. However, ampli.json seems not to be configurable for multiple project. Do I need to create source per enviornment and project per app?
What is the best way to setup Amplitude project in multi environment scenario for Ampli wrapper user? What I want is simple, I need an environment to test if my implementation is OK before releasing code to production. Plus, I want to keep data clean in Amplitude project.