forked from keycloakify/keycloakify-starter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvite.config.ts
30 lines (29 loc) · 1.4 KB
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { keycloakify } from "keycloakify/vite-plugin";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
keycloakify({
accountThemeImplementation: "none",
themeName: "Tailcloakify",
environmentVariables: [
{ name: "TAILCLOAKIFY_ADDITIONAL_SCRIPTS", default: "" },
{ name: "TAILCLOAKIFY_BACKGROUND_LOGO_URL", default: "" },
{ name: "TAILCLOAKIFY_BACKGROUND_VIDEO_URL", default: "" },
{ name: "TAILCLOAKIFY_FAVICON_URL", default: "" },
{ name: "TAILCLOAKIFY_FOOTER_IMPRINT_URL", default: "" },
{ name: "TAILCLOAKIFY_FOOTER_DATAPROTECTION_URL", default: "" },
{ name: "TAILCLOAKIFY_FOOTER_ORESTBIDACOOKIECONSENT", default: "" },
],
kcContextExclusionsFtl: [
'<@addToXKeycloakifyMessagesIfMessageKey str="backgroundLogoUrl" />',
'<@addToXKeycloakifyMessagesIfMessageKey str="backgroundVideoUrl" />',
'<@addToXKeycloakifyMessagesIfMessageKey str="faviconUrl" />',
'<@addToXKeycloakifyMessagesIfMessageKey str="footerImprintUrl" />',
'<@addToXKeycloakifyMessagesIfMessageKey str="footerDataprotectionUrl" />',
].join(".\n")
})
]
});