Your apollo variable will now be the url with the basepath. you need to set up a new apollo variable as an environment variable without it. Then go into apollo and request that variable instead of the BASE_URL. In my case the file was src/apollo/client.js . You will see something like process.env.BASE_URL
Change that to process.env.APOLLO_URL after creating the env variable which in my case I created in an env.local file.