mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-02-01 20:10:35 +01:00
Resolved conflicts by: - Kept invite link feature (inviteLinkExpiryHours in ApplicationProperties) - Kept enhanced email invite validation (both SMTP and invites enabled check) - Adopted V2's Posthog/Scarf tracking additions - Adopted V2's password length validation (min 6 chars) on both backend and frontend - Converted email templates to Java text blocks - Kept success message functionality in Login flow - Used @app path aliases consistently across frontend files - Fixed remaining relative imports in Workbench, RestartConfirmationModal, useRestartServer, and InviteAccept - Accepted deletion of refactored files (App.tsx, Landing.tsx, etc.) - Kept InviteAccept.tsx for invite link feature
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react-swc';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
|
|
// When DISABLE_ADDITIONAL_FEATURES is false (or unset), enable proprietary features
|
|
const isProprietary = process.env.DISABLE_ADDITIONAL_FEATURES !== 'true';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
tsconfigPaths({
|
|
projects: [
|
|
isProprietary ? './tsconfig.proprietary.json' : './tsconfig.core.json',
|
|
],
|
|
}),
|
|
],
|
|
server: {
|
|
host: true, // Listen on all addresses (0.0.0.0) - allows access from any domain/IP
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
'/oauth2': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
'/login/oauth2': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
},
|
|
},
|
|
base: process.env.RUN_SUBPATH ? `/${process.env.RUN_SUBPATH}` : './',
|
|
});
|