Configuring API Base URL
The API base URL is used to connect your app to the backend server. To configure it:
- Open
.env
file in the root directory - Update the
API_BASE_URL
variable:bashAPI_BASE_URL=https://your-domain.com
If the .env
file doesn't exist:
- Copy
.env.example
to.env
- Update the
API_BASE_URL
variable
The default API base URL is https://ecommerce-api.botble.com
if not specified.
Important Notes
- Make sure to use HTTPS for production environments
- The URL should not end with a trailing slash (/)
- The URL should be accessible from your app's target devices
- For local development, you can use
http://localhost:8000
or your local IP address