# Base URL of the Django REST backend. # # - '/api' same-origin. The Vite dev server proxies # this prefix to VITE_API_PROXY_TARGET (see # below); in production your web server # routes /api to Django. # - 'http://localhost:8000/api' talk to Django directly. CORS must be # enabled there. No proxy is registered. VITE_API_BASE_URL=/api # Where the dev server should proxy API requests when VITE_API_BASE_URL is a # relative path. Ignored for absolute URLs or when mocking. VITE_API_PROXY_TARGET=http://localhost:8000 # When set to 'true', the Vite dev server serves a fake backend from # mocks/vitePlugin.ts. No Django required. The real backend (if any) is # ignored in that case. VITE_USE_MOCK_API=false