mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: env variable
This commit is contained in:
+1
-1
@@ -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
|
||||
);
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
);
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
);
|
||||
|
||||
|
||||
+2
-2
@@ -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 {
|
||||
|
||||
+3
-3
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user