Before running Panahashi Admin, you need to supply credentials for Firebase Authentication and point the app at your backend API. All runtime configuration is injected through aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Admin-Pana/llms.txt
Use this file to discover all available pages before exploring further.
.env file in the project root, which Vite reads at build time.
Environment variables
Panahashi Admin reads the following environment variables at build time. Create a.env file in the project root and populate each value before starting the development server or running a build.
.env.example
Vite only exposes variables prefixed with
VITE_ to browser code. Variables without this prefix are not included in the bundle and will be undefined at runtime.Getting Firebase values
Open the Firebase console
Go to console.firebase.google.com and select your project. If you don’t have a project yet, create one before continuing.
Open project settings
Click the gear icon next to Project Overview in the left sidebar and select Project settings.
Find your web app
Scroll down to the Your apps section. If you haven’t registered a web app yet, click Add app, choose the web platform (
</>), and follow the prompts.Backend API base URL
The base URL for all API calls is hardcoded insrc/api/axios.js:
src/api/axios.js
src/api/axios.js and replace the baseURL value:
src/api/axios.js
import.meta.env:
src/api/axios.js
VITE_API_BASE_URL to your .env file:
.env