Panahashi Admin is a Vite-powered single-page application. The build process compiles your source files into 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.
dist/ folder containing plain HTML, CSS, and JavaScript — static assets that any web server or CDN can serve without a Node.js runtime.
Deployment steps
Configure environment variables
Set all required See the Configuration page for a full explanation of each variable, including how to override the backend API base URL for production.
VITE_ variables for your target environment before building. The build process bakes these values into the output bundle, so they must be set at build time, not at runtime..env
Build the application
Run the build command from the project root:Vite compiles the application and writes the output to the
dist/ directory. The folder contains all the static files needed to serve the app.Preview the production build locally
Before uploading to a hosting provider, verify the production build locally:This starts a local server at
http://localhost:4173 that serves the contents of dist/ exactly as a production server would. Use this step to catch any environment or routing issues before deploying.The backend API at
VITE_API_BASE_URL must be reachable from the deployed URL. Update your backend’s CORS settings to allow requests from your production domain, otherwise API calls will be blocked by the browser.Hosting options
- Netlify
- Vercel
Drag-and-dropOn the first run, the CLI will prompt you to log in and link or create a site. Set your
- Build the app locally with
npm run build. - Open app.netlify.com and log in.
- Drag the
dist/folder onto the Netlify drop zone on the Sites page. - Netlify deploys the site and provides a URL immediately.
VITE_ environment variables under Site settings → Environment variables in the Netlify dashboard so they are available for future CI builds.