part 1 first you should create .env.local file in root of the project for example : NEXT_PUBLIC_API_BASE_URL=http://localhost:5050 NEXT_PUBLIC_IMAGE_BASE_URL=http://localhost:5050