- Integrate MSAL (Azure AD) login gating the entire app - Add deploy.sh for building and serving via Apache on Ubuntu - Set Vite base path to /smartcrop26/ for subpath deployment - Add .env.example with required environment variables Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
549 B
TypeScript
22 lines
549 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react-swc";
|
|
import path from "path";
|
|
import { componentTagger } from "lovable-tagger";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig(({ mode }) => ({
|
|
base: mode === "production" ? "/smartcrop26/" : "/",
|
|
server: {
|
|
host: "::",
|
|
port: 8080,
|
|
hmr: {
|
|
overlay: false,
|
|
},
|
|
},
|
|
plugins: [react(), mode === "development" && componentTagger()].filter(Boolean),
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
}));
|