From 2bd4f06188ba6487ddf733cf36e7f10dcc3fb341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A0=91=E8=90=8C=E8=8A=BD?= <3205788256@qq.com> Date: Sat, 13 Dec 2025 22:28:13 +0800 Subject: [PATCH] first commit --- mengyadriftbottle-frontend/README.md | 29 ---------------------------- 1 file changed, 29 deletions(-) delete mode 100644 mengyadriftbottle-frontend/README.md diff --git a/mengyadriftbottle-frontend/README.md b/mengyadriftbottle-frontend/README.md deleted file mode 100644 index 5eb22a8..0000000 --- a/mengyadriftbottle-frontend/README.md +++ /dev/null @@ -1,29 +0,0 @@ -## Mengya Drift Bottle – Frontend - -React + Vite single-page application that consumes the Flask API exposed under `/api`. - -### Available Scripts - -```bash -# start dev server with API proxy to http://localhost:5002 -npm run dev - -# lint with ESLint -npm run lint - -# production build -npm run build -``` - -The dev server proxies every `/api/*` request to the backend, so start the Flask app before opening the React UI. - -### Configuration - -Set the following environment variables in a `.env` file if you need to override defaults: - -``` -VITE_API_BASE_URL=http://localhost:5002/api -VITE_ADMIN_URL=http://localhost:5002/admin/login -``` - -In production you typically serve the static build (`dist/`) behind the same origin as the backend, allowing the default relative `/api` base to keep working.