mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
* update infra and remove railway
* feat(signup): added back to login functionalityfrom OTP page
* remove placeholders from docker commands, simplified login flow
* Revert "update infra and remove railway"
This reverts commit abfa2f8d51.
22 lines
644 B
TypeScript
22 lines
644 B
TypeScript
import { env, isTruthy } from '@/lib/env'
|
|
import { getOAuthProviderStatus } from '@/app/(auth)/components/oauth-provider-checker'
|
|
import SignupForm from '@/app/(auth)/signup/signup-form'
|
|
|
|
export const dynamic = 'force-dynamic'
|
|
|
|
export default async function SignupPage() {
|
|
const { githubAvailable, googleAvailable, isProduction } = await getOAuthProviderStatus()
|
|
|
|
if (isTruthy(env.DISABLE_REGISTRATION)) {
|
|
return <div>Registration is disabled, please contact your admin.</div>
|
|
}
|
|
|
|
return (
|
|
<SignupForm
|
|
githubAvailable={githubAvailable}
|
|
googleAvailable={googleAvailable}
|
|
isProduction={isProduction}
|
|
/>
|
|
)
|
|
}
|