changes
This commit is contained in:
parent
4527909d79
commit
ab13d1ff91
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,7 +14,6 @@ instance/
|
|||||||
|
|
||||||
# Virtual environment
|
# Virtual environment
|
||||||
venv/
|
venv/
|
||||||
env/
|
|
||||||
.venv/
|
.venv/
|
||||||
|
|
||||||
# Byte-compiled / cache
|
# Byte-compiled / cache
|
||||||
|
|||||||
@ -306,7 +306,7 @@ echo "$(timestamp) Backend → http://localhost:5000"
|
|||||||
echo " Log: $BACKEND_LOG"
|
echo " Log: $BACKEND_LOG"
|
||||||
echo " PID: $(cat backend.pid 2>/dev/null || echo 'N/A')"
|
echo " PID: $(cat backend.pid 2>/dev/null || echo 'N/A')"
|
||||||
echo ""
|
echo ""
|
||||||
echo "$(timestamp) Frontend → http://localhost:3000"
|
echo "$(timestamp) Frontend → http://localhost:5173"
|
||||||
echo " Log: $FRONTEND_LOG"
|
echo " Log: $FRONTEND_LOG"
|
||||||
echo " PID: $(cat frontend.pid 2>/dev/null || echo 'N/A')"
|
echo " PID: $(cat frontend.pid 2>/dev/null || echo 'N/A')"
|
||||||
echo "========================================="
|
echo "========================================="
|
||||||
|
|||||||
@ -11,7 +11,7 @@ interface AuthContextType {
|
|||||||
|
|
||||||
const AuthContext = createContext<AuthContextType | undefined>(undefined);
|
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)
|
// Helper: decode a JWT payload (no signature check — used only to read exp)
|
||||||
function decodeJwtPayload(token: string | null) {
|
function decodeJwtPayload(token: string | null) {
|
||||||
|
|||||||
@ -23,7 +23,7 @@ interface OrderItem {
|
|||||||
status: string;
|
status: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const API_BASE = 'http://127.0.0.1:5000';
|
const API_BASE = import .meta.env.VITE_API_BASE
|
||||||
|
|
||||||
export default function Dashboard() {
|
export default function Dashboard() {
|
||||||
const { logout } = useAuth();
|
const { logout } = useAuth();
|
||||||
|
|||||||
@ -1,10 +1,15 @@
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
exclude: ['lucide-react'],
|
exclude: ['lucide-react'],
|
||||||
},
|
},
|
||||||
|
server: {
|
||||||
|
port: 1573,
|
||||||
|
strictPort: true,
|
||||||
|
host: true
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user