changes
This commit is contained in:
parent
4527909d79
commit
ab13d1ff91
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,7 +14,6 @@ instance/
|
||||
|
||||
# Virtual environment
|
||||
venv/
|
||||
env/
|
||||
.venv/
|
||||
|
||||
# Byte-compiled / cache
|
||||
|
||||
@ -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 "========================================="
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user