mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-28 12:31:00 +00:00
Update API URL fallback in UserManagementPage to ensure local development compatibility
This commit is contained in:
@@ -99,7 +99,11 @@ const UM_CONFIG: DesignConfig = {
|
||||
|
||||
const UM_RUNTIME = {
|
||||
basename: '/um',
|
||||
apiUrl: import.meta.env.VITE_BASE_API_URL,
|
||||
// Keep the embedded IAM module on the same API as the backoffice client.
|
||||
// When VITE_BASE_API_URL is absent locally, passing undefined makes iamui
|
||||
// fall back to its remote development server, where the local JWT is
|
||||
// rejected and the module redirects to its login page.
|
||||
apiUrl: import.meta.env.VITE_BASE_API_URL ?? 'http://localhost:3000/api',
|
||||
};
|
||||
|
||||
const buttonStyle: React.CSSProperties = {
|
||||
|
||||
Reference in New Issue
Block a user