- Switch MSAL cache to localStorage + cookie fallback to fix AADSTS90014 (PKCE state lost on redirect) - Fix base path and redirect URI to use correct case: lusa-Back-Planner - Add deploy.sh for server-side build and deploy Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
440 B
TypeScript
21 lines
440 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "path";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig(({ mode }) => ({
|
|
base: mode === "production" ? "/lusa-Back-Planner/" : "/",
|
|
server: {
|
|
host: "::",
|
|
port: 3000,
|
|
hmr: {
|
|
overlay: false,
|
|
},
|
|
},
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
}));
|