feat(api): update API configuration and add proxy rewrites
- Remove the NEXT_PUBLIC_API_URL from the production environment file. - Change axios base URL to use a local proxy endpoint. - Add rewrites in next.config.mjs to route API requests through the proxy.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
NEXT_PUBLIC_API_URL="https://admin.opplenz.com/admin/v1/"
|
||||
NEXT_PUBLIC_TOAST_AUTO_CLOSE_DURATION=2500
|
||||
NEXT_PUBLIC_FIREBASE_API_KEY=AIzaSyCTjdsk2jE34IfnvSKP1JMTIf_Abd7tbt0
|
||||
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=opplens-270d1.firebaseapp.com
|
||||
|
||||
Reference in New Issue
Block a user