My staging and production servers are on different servers and domains.
Which would be the best way to deal with external APIs that have a key that relies on domain names?
Is this bad practice and both should be on the same server?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, my own solution to this problem is using different keys in an array for different environments.
In this case i’ll try to explain it in PHP
I hope this helps…