You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The frontend is built with Vite, so environment variables must be read from `import.meta.env` (for example, `import.meta.env.VITE_API_URL`). Using `process.env` will not work in the browser bundle.
166
+
169
167
### Building for Production
170
168
171
169
```bash
170
+
# Build shared types first (required for server compilation)
171
+
npx tsc --build src/types
172
+
172
173
# Build all components
173
174
npm run build:all
174
175
@@ -188,6 +189,15 @@ npm run lint:all
188
189
npm run preview
189
190
```
190
191
192
+
## Validation Checklist
193
+
194
+
- Build shared types: `npx tsc --build src/types`
195
+
- Full build: `npm run build:all`
196
+
- Lint: `npm run lint:all`
197
+
- Manual smoke test:
198
+
- Start backend: `npm run dev:server` and verify `curl http://localhost:3001/health` returns `{"status":"ok"}`.
199
+
- Start frontend: `npm run dev:frontend`, visit http://localhost:3000, and navigate between Dashboard, Master Prompt Editor, and Advanced AI Toolkit. Press `Ctrl + /` to confirm the shortcuts panel appears.
200
+
191
201
## Security & Performance
192
202
193
203
This project implements comprehensive security measures and performance optimizations. For detailed information, see [SECURITY_OPTIMIZATION_REPORT.md](SECURITY_OPTIMIZATION_REPORT.md).
0 commit comments