Store https://my-theme.keycloakify.dev as a constant
This commit is contained in:
parent
db0ec954df
commit
8e8a0ccf54
@ -85,3 +85,5 @@ export const KEYCLOAKIFY_SPA_DEV_SERVER_PORT = "KEYCLOAKIFY_SPA_DEV_SERVER_PORT"
|
||||
export const KEYCLOAKIFY_LOGGING_VERSION = "1.0.1";
|
||||
|
||||
export const KEYCLOAKIFY_LOGIN_JAR_BASENAME = `keycloakify-login-${KEYCLOAKIFY_LOGGING_VERSION}.jar`;
|
||||
|
||||
export const TEST_APP_URL = "https://my-theme.keycloakify.dev";
|
||||
|
@ -3,6 +3,7 @@ import type { ParsedRealmJson } from "./ParsedRealmJson";
|
||||
import { getDefaultConfig } from "./defaultConfig";
|
||||
import type { BuildContext } from "../../shared/buildContext";
|
||||
import { objectKeys } from "tsafe/objectKeys";
|
||||
import { TEST_APP_URL } from "../../shared/constants";
|
||||
|
||||
export type BuildContextLike = {
|
||||
themeNames: BuildContext["themeNames"];
|
||||
@ -158,8 +159,6 @@ function addOrEditTestUser(params: {
|
||||
return { username: newUser.username };
|
||||
}
|
||||
|
||||
const TEST_APP_URL = "https://my-theme.keycloakify.dev";
|
||||
|
||||
function addOrEditClient(params: {
|
||||
parsedRealmJson: ParsedRealmJson;
|
||||
keycloakMajorVersionNumber: number;
|
||||
|
@ -3,7 +3,8 @@ import { exclude } from "tsafe/exclude";
|
||||
import {
|
||||
CONTAINER_NAME,
|
||||
KEYCLOAKIFY_SPA_DEV_SERVER_PORT,
|
||||
KEYCLOAKIFY_LOGIN_JAR_BASENAME
|
||||
KEYCLOAKIFY_LOGIN_JAR_BASENAME,
|
||||
TEST_APP_URL
|
||||
} from "../shared/constants";
|
||||
import { SemVer } from "../tools/SemVer";
|
||||
import { assert, type Equals } from "tsafe/assert";
|
||||
@ -525,7 +526,7 @@ export async function command(params: {
|
||||
`${chalk.green("Your theme is accessible at:")}`,
|
||||
`${chalk.green("➜")} ${chalk.cyan.bold(
|
||||
(() => {
|
||||
const url = new URL("https://my-theme.keycloakify.dev");
|
||||
const url = new URL(TEST_APP_URL);
|
||||
|
||||
if (port !== 8080) {
|
||||
url.searchParams.set("port", `${port}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user