diff --git a/.env.sample b/.env.sample index 6b2913778..f18919de6 100644 --- a/.env.sample +++ b/.env.sample @@ -3,6 +3,9 @@ PUBLIC_CRYPTO_PRIVATE_KEY= PUBLIC_SHOW_NAME_AS_LOGO= # Please provide true if you want to give platform name with logo +PUBLIC_REDIRECT_FROM_URL= # Please provide the URL that will be redirected from +PUBLIC_REDIRECTION_TARGET_URL= # Please provide the URL that will be redirected to + PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_ID= # Please sepcify your client id PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_SECRET= # Please specify your client secrete diff --git a/src/components/UserCertificate.astro b/src/components/UserCertificate.astro index ee10bce4e..98a7c96ab 100644 --- a/src/components/UserCertificate.astro +++ b/src/components/UserCertificate.astro @@ -1,21 +1,8 @@ ---- -import { apiRoutes } from '../config/apiRoutes' -import API from '../config/ssrApiConfig'; + diff --git a/src/config/apiRoutes.ts b/src/config/apiRoutes.ts index f362c6e46..453954dd5 100644 --- a/src/config/apiRoutes.ts +++ b/src/config/apiRoutes.ts @@ -34,8 +34,7 @@ export const apiRoutes = { fetchUsers: '/users', update: '/users', recentActivity: '/users/activity', - platformSettings: '/users/platform-settings', - userCredentials:'/users/user-credentials' + platformSettings: '/users/platform-settings' }, organizations: { root: '/orgs', diff --git a/src/config/envConfig.ts b/src/config/envConfig.ts index 096202fe6..7574de692 100644 --- a/src/config/envConfig.ts +++ b/src/config/envConfig.ts @@ -17,7 +17,7 @@ if (import.meta.env) { } } -const { PUBLIC_BASE_URL, PUBLIC_ECOSYSTEM_FRONT_END_URL, PUBLIC_POLYGON_TESTNET_URL, PUBLIC_POLYGON_MAINNET_URL, PUBLIC_CRYPTO_PRIVATE_KEY,PUBLIC_SHOW_NAME_AS_LOGO, PUBLIC_PLATFORM_NAME, PUBLIC_PLATFORM_LOGO, PUBLIC_POWERED_BY, PUBLIC_PLATFORM_WEB_URL, PUBLIC_POWERED_BY_URL, PUBLIC_PLATFORM_DOCS_URL, PUBLIC_PLATFORM_GIT, PUBLIC_PLATFORM_SUPPORT_EMAIL, PUBLIC_PLATFORM_TWITTER_URL, PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_ID, PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_SECRET, PUBLIC_PLATFORM_SUPPORT_INVITE, PUBLIC_PLATFORM_DISCORD_URL, PUBLIC_ALLOW_DOMAIN, PUBLIC_ECOSYSTEM_BASE_URL }: any = envVariables; +const { PUBLIC_BASE_URL, PUBLIC_ECOSYSTEM_FRONT_END_URL, PUBLIC_POLYGON_TESTNET_URL, PUBLIC_POLYGON_MAINNET_URL, PUBLIC_CRYPTO_PRIVATE_KEY,PUBLIC_SHOW_NAME_AS_LOGO, PUBLIC_PLATFORM_NAME, PUBLIC_PLATFORM_LOGO, PUBLIC_POWERED_BY, PUBLIC_PLATFORM_WEB_URL, PUBLIC_POWERED_BY_URL, PUBLIC_PLATFORM_DOCS_URL, PUBLIC_PLATFORM_GIT, PUBLIC_PLATFORM_SUPPORT_EMAIL, PUBLIC_PLATFORM_TWITTER_URL, PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_ID, PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_SECRET, PUBLIC_PLATFORM_SUPPORT_INVITE, PUBLIC_PLATFORM_DISCORD_URL, PUBLIC_ALLOW_DOMAIN, PUBLIC_ECOSYSTEM_BASE_URL, PUBLIC_REDIRECT_FROM_URL, PUBLIC_REDIRECTION_TARGET_URL }: any = envVariables; export const envConfig = { PUBLIC_BASE_URL: @@ -73,5 +73,7 @@ export const envConfig = { PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_SECRET || import.meta.env.PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_SECRET, }, - PUBLIC_ALLOW_DOMAIN: PUBLIC_ALLOW_DOMAIN || import.meta.env.PUBLIC_ALLOW_DOMAIN + PUBLIC_ALLOW_DOMAIN: PUBLIC_ALLOW_DOMAIN || import.meta.env.PUBLIC_ALLOW_DOMAIN, + PUBLIC_REDIRECT_FROM_URL: PUBLIC_REDIRECT_FROM_URL || import.meta.env.PUBLIC_REDIRECT_FROM_URL, + PUBLIC_REDIRECTION_TARGET_URL: PUBLIC_REDIRECTION_TARGET_URL || import.meta.env.PUBLIC_REDIRECTION_TARGET_URL } \ No newline at end of file