API URL Configuration
To connect your web application to the admin panel, you need to properly configure the API URL. This setting is crucial for the web application to communicate with your backend system.
Setting Admin Panel URL
- Open the main folder of your project
- Locate the
.env
file and open it - Find the variable for the admin panel URL
- Update it with your admin panel's URL
Make sure you enter the complete URL of your admin panel. This URL will be used by the web application to fetch data from your backend.
Testing the Connection
After setting up the API URL:
- Save the
.env
file - Restart your development server to apply the changes
- Check if your web application can connect to the admin panel
If you encounter connection issues, verify that:
- Your admin panel is running and accessible
- The URL is correct and includes the proper protocol (http:// or https://)
- There are no firewall or network issues blocking the connection