Skip to content

Commit

Permalink
chore(aurora-portal): fix bug in compute
Browse files Browse the repository at this point in the history
  • Loading branch information
andypf committed Feb 13, 2025
1 parent e98ac42 commit 556bd82
Show file tree
Hide file tree
Showing 4 changed files with 3,730 additions and 4,528 deletions.
2 changes: 1 addition & 1 deletion apps/aurora-portal/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ src/client/generated
src/server/generated

aurora.config.json

.npmrc
# Editor directories and files
.vscode/*
!.vscode/extensions.json
Expand Down
11 changes: 2 additions & 9 deletions apps/aurora-portal/src/client/Shell/AppContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,8 @@ import Navigation from "./Navigation"
import { useAuth } from "./AuthProvider"

type RouterScopes = keyof typeof trpcClient
type Extension = {
label: string
routerScope: RouterScopes
scope: RouterScopes
App: Promise<{ default: React.ComponentType<{ client: (typeof trpcClient)[RouterScopes] }> }>
Logo: Promise<{ default: React.ComponentType }>
}

const extensions = (registerClients() as Extension[]).map((ext) => ({
const extensions = registerClients().map((ext) => ({
label: ext.label,
routerID: ext.routerScope,
scope: ext.scope,
Expand Down Expand Up @@ -59,7 +52,7 @@ export function AppContent() {
{user && (
<>
<Route path="/compute">
<Compute />
<Compute api={trpcClient.compute} />
</Route>
<Route path="/identity">
<IdentityOverview />
Expand Down
1 change: 1 addition & 0 deletions apps/aurora-portal/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default defineConfig({
},
},
server: {
allowedHosts: ["aurora.ap.ws2.eu-nl-1.cloud.sap"],
host: "0.0.0.0",
port: parseInt(DEV_PORT),
proxy: {
Expand Down
Loading

0 comments on commit 556bd82

Please sign in to comment.