Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import { createClient } from '@base44/sdk';

export const base44 = createClient({
appId: '<%= projectId %>',
// `base44 dev` injects VITE_BASE44_APP_BASE_URL (http://localhost:<port>) so the
// SDK targets the local dev backend; unset in prod builds, so it falls back to
// the SDK's default server.
serverUrl: import.meta.env.VITE_BASE44_APP_BASE_URL || undefined,
});
Loading