Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 9 additions & 0 deletions apps/sim/app/(landing)/integrations/[slug]/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Loader } from '@/components/emcn'

export default function IntegrationDetailLoading() {
return (
<div className='flex min-h-[60vh] items-center justify-center bg-[var(--landing-bg)]'>
<Loader animate className='h-6 w-6 text-[var(--landing-text-muted)]' />
</div>
)
}
9 changes: 9 additions & 0 deletions apps/sim/app/(landing)/models/[provider]/[model]/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Loader } from '@/components/emcn'

export default function ModelDetailLoading() {
return (
<div className='flex min-h-[60vh] items-center justify-center bg-[var(--landing-bg)]'>
<Loader animate className='h-6 w-6 text-[var(--landing-text-muted)]' />
</div>
)
}
9 changes: 9 additions & 0 deletions apps/sim/app/(landing)/models/[provider]/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Loader } from '@/components/emcn'

export default function ModelProviderLoading() {
return (
<div className='flex min-h-[60vh] items-center justify-center bg-[var(--landing-bg)]'>
<Loader animate className='h-6 w-6 text-[var(--landing-text-muted)]' />
</div>
)
}
11 changes: 10 additions & 1 deletion apps/sim/lib/auth/auth-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,17 @@ import { isBillingEnabled, isOrganizationsEnabled } from '@/lib/core/config/feat
import { getBaseUrl } from '@/lib/core/utils/urls'
import { SessionContext, type SessionHookResult } from '@/app/_shell/providers/session-provider'

function getAuthBaseUrl(): string {
try {
return getBaseUrl()
} catch (e) {
if (typeof window !== 'undefined') return window.location.origin
throw e
}
}

export const client = createAuthClient({
baseURL: getBaseUrl(),
baseURL: getAuthBaseUrl(),
plugins: [
adminClient(),
emailOTPClient(),
Expand Down
Loading