fix: env variable

This commit is contained in:
Arman
2025-03-28 11:54:07 +01:00
parent f693f67e66
commit 24e8b059ce
7 changed files with 14 additions and 14 deletions
@@ -80,7 +80,7 @@
// Add domain
await sdk.forProject.proxy.createFunctionRule(
`${ID.unique()}.${$consoleVariables._APP_DOMAIN_TARGET}`,
`${ID.unique()}.${$consoleVariables._APP_DOMAIN_FUNCTIONS}`,
func.$id
);
@@ -88,7 +88,7 @@
// Add domain
await sdk.forProject.proxy.createFunctionRule(
`${ID.unique()}.${$consoleVariables._APP_DOMAIN_TARGET}`,
`${ID.unique()}.${$consoleVariables._APP_DOMAIN_FUNCTIONS}`,
func.$id
);
@@ -146,7 +146,7 @@
// Add domain
await sdk.forProject.proxy.createFunctionRule(
`${ID.unique()}.${$consoleVariables._APP_DOMAIN_TARGET}`,
`${ID.unique()}.${$consoleVariables._APP_DOMAIN_FUNCTIONS}`,
func.$id
);
@@ -35,7 +35,7 @@
let branch = null;
const redirectOptions = data.domains.rules
.filter((d) => !d.domain.endsWith($consoleVariables._APP_DOMAIN_TARGET))
.filter((d) => !d.domain.endsWith($consoleVariables._APP_DOMAIN_FUNCTIONS))
.map((domain) => ({
label: domain.domain,
value: domain.domain
@@ -74,7 +74,7 @@
});
async function addDomain() {
const isPreviewDomain = domain.endsWith($consoleVariables._APP_DOMAIN_TARGET);
const isPreviewDomain = domain.endsWith($consoleVariables._APP_DOMAIN_FUNCTIONS);
const isNewDomain = data.domains.rules.findIndex((rule) => rule.domain === domain) === -1;
const isSubDomain = domain.split('.').length >= 2;
try {
@@ -22,7 +22,7 @@
async function onSubmit() {
try {
await sdk.forProject.proxy.createFunctionRule(
`${domain}.${$consoleVariables._APP_DOMAIN_TARGET}`,
`${domain}.${$consoleVariables._APP_DOMAIN_FUNCTIONS}`,
$page.params.function
);
@@ -57,7 +57,7 @@
}
try {
await sdk.forConsole.console.getResource(
`${value}.${$consoleVariables._APP_DOMAIN_TARGET}`,
`${value}.${$consoleVariables._APP_DOMAIN_FUNCTIONS}`,
ConsoleResourceType.Rules
);
domainStatus = 'complete';
@@ -89,7 +89,7 @@
<InputText id="domain" placeholder="my-domain" bind:value={domain}>
<svelte:fragment slot="end">
<Typography.Text variant="m-400" color="--fgcolor-neutral-tertiary">
.{$consoleVariables._APP_DOMAIN_TARGET}
.{$consoleVariables._APP_DOMAIN_FUNCTIONS}
</Typography.Text>
</svelte:fragment>
</InputText>