Connect Backend

Connect Backend

Update the environment file to connect the app to backend, there will be a file ".env.production" inside "app" folder, edit the API_BASE_URL in that file to your own server url like this:

Video Tutorial


Instructions

You will see two files named ".env.production" and ".env.development" in your app folder as follows:

  • .env.production
  • .env.development
  • Modify these files to include your server URL

    Code

    .env.production
    API_BASE_URL="https://myapp.com/api" // replace with your own server url
    .env.development
    API_BASE_URL="https://myapp.com/api" // replace with your own server url
    ℹ️

    Make sure there is no space between any character, for example: if your admin panel url is "https://www.funearn.com (opens in a new tab)" then you have to write it as API_BASE_URL=https://www.funearn.com/api

    ℹ️

    For security reasons "http" URL is not allowed, make sure to use "https" URL