Refactor breadcrumbs link and reorder workflow env

- Breadcrumbs: switch to resolve from '$app/paths' for the All projects
link - Workflow: reorder env vars so APPWRITE_ENDPOINT precedes
AI_SERVICE_BASE_URL
This commit is contained in:
Torsten Dittmann
2025-11-03 21:53:33 +04:00
parent 1e79a84725
commit 78bbee6449
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -9,8 +9,8 @@ on:
env:
PUBLIC_CONSOLE_PROFILE: 'default'
PUBLIC_AI_SERVICE_BASE_URL: 'http://appwrite.test/v1'
PUBLIC_APPWRITE_ENDPOINT: http://appwrite.test/v1
PUBLIC_AI_SERVICE_BASE_URL: 'http://appwrite.test/v1'
jobs:
build:
+4 -2
View File
@@ -19,7 +19,7 @@
import { isSmallViewport } from '$lib/stores/viewport';
import { isCloud } from '$lib/system';
import { goto, beforeNavigate } from '$app/navigation';
import { base } from '$app/paths';
import { base, resolve } from '$app/paths';
import { currentPlan, newOrgModal, organization } from '$lib/stores/organization';
import { Click, trackEvent } from '$lib/actions/analytics';
import { ID, type Models, Query } from '@appwrite.io/console';
@@ -171,7 +171,9 @@
if (loadedProjects.projects.length > 4) {
projectLinks.push({
name: 'All projects',
href: `${base}/organization-${selectedOrg.$id}`
href: resolve('/(console)/organization-[organization]', {
organization: selectedOrg.$id
})
});
}