import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import path from 'path' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // Set base to '/' for local testing, or to your repo name for GitHub Pages // e.g., base: '/example-remote-client/' for https://username.github.io/example-remote-client/ base: process.env.NODE_ENV === 'production' ? '/example-remote-client/' : '/', resolve: { alias: { '@': path.resolve(__dirname, './src'), }, }, define: { global: 'globalThis', }, server: { port: 3000, }, build: { outDir: 'dist', sourcemap: true, }, })