Working build
This commit is contained in:
1 parent
91d95c7eab
commit
33bfebfa99
6 files changed
+313
-342
No files matched your search
+1
-1
@@ -52,6 +52,6 @@ jspm_packages
|
||||
|
||||
/dist
|
||||
|
||||
/build_keycloak
|
||||
/dist_keycloak
|
||||
/build
|
||||
/storybook-static
|
||||
+2
-3
@@ -9,7 +9,6 @@
|
||||
},
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"postinstall": "copy-keycloak-resources-to-public",
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build",
|
||||
"build-keycloak-theme": "yarn build && keycloakify"
|
||||
@@ -26,7 +25,7 @@
|
||||
"dependencies": {
|
||||
"evt": "^2.5.7",
|
||||
"oidc-spa": "^4.0.0",
|
||||
"keycloakify": "9.3.0-rc.0",
|
||||
"keycloakify": "9.4.0-rc.15",
|
||||
"powerhooks": "^1.0.8",
|
||||
"tsafe": "^1.6.6",
|
||||
"zod": "^3.22.4",
|
||||
@@ -45,6 +44,6 @@
|
||||
"typescript": "^5.2.2",
|
||||
"vite": "^5.0.8",
|
||||
"vite-plugin-commonjs": "^0.10.1",
|
||||
"@storybook/react": "^7.6.10"
|
||||
"@storybook/react": "^7.6.14"
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
|
||||
import { kcContext as kcLoginThemeContext } from "./keycloak-theme/login/kcContext";
|
||||
import { kcContext as kcAccountThemeContext } from "./keycloak-theme/login/kcContext";
|
||||
|
||||
/**
|
||||
* If you need to use import.meta.env.BASE_URL, use this variable instead.
|
||||
* If you can, import your assets using the import statement.
|
||||
*
|
||||
* See: https://docs.keycloakify.dev/importing-assets#importing-custom-assets-that-arent-fonts
|
||||
*/
|
||||
export const BASE_URL = (()=>{
|
||||
|
||||
const kcContext = (()=>{
|
||||
|
||||
if( kcLoginThemeContext !== undefined ){
|
||||
return kcLoginThemeContext;
|
||||
}
|
||||
|
||||
if( kcAccountThemeContext !== undefined ){
|
||||
return kcLoginThemeContext
|
||||
}
|
||||
|
||||
return undefined;
|
||||
|
||||
})();
|
||||
|
||||
return (kcContext === undefined || import.meta.env.MODE === 'development')
|
||||
? import.meta.env.BASE_URL
|
||||
: `${kcContext.url.resourcesPath}/build/`;
|
||||
|
||||
})();
|
||||
Loaded 3 of 6 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user