This commit is contained in:
Devi-priya-dp 2025-11-20 15:33:47 +05:30
parent 4527909d79
commit ab13d1ff91
5 changed files with 9 additions and 5 deletions

1
.gitignore vendored
View File

@ -14,7 +14,6 @@ instance/
# Virtual environment
venv/
env/
.venv/
# Byte-compiled / cache

View File

@ -306,7 +306,7 @@ echo "$(timestamp) Backend → http://localhost:5000"
echo " Log: $BACKEND_LOG"
echo " PID: $(cat backend.pid 2>/dev/null || echo 'N/A')"
echo ""
echo "$(timestamp) Frontend → http://localhost:3000"
echo "$(timestamp) Frontend → http://localhost:5173"
echo " Log: $FRONTEND_LOG"
echo " PID: $(cat frontend.pid 2>/dev/null || echo 'N/A')"
echo "========================================="

View File

@ -11,7 +11,7 @@ interface AuthContextType {
const AuthContext = createContext<AuthContextType | undefined>(undefined);
const API_BASE = 'http://127.0.0.1:5000';
const API_BASE = import .meta.env.VITE_API_BASE
// Helper: decode a JWT payload (no signature check — used only to read exp)
function decodeJwtPayload(token: string | null) {

View File

@ -23,7 +23,7 @@ interface OrderItem {
status: string;
}
const API_BASE = 'http://127.0.0.1:5000';
const API_BASE = import .meta.env.VITE_API_BASE
export default function Dashboard() {
const { logout } = useAuth();

View File

@ -1,10 +1,15 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
optimizeDeps: {
exclude: ['lucide-react'],
},
server: {
port: 1573,
strictPort: true,
host: true
}
});