diff --git a/apps/webapp/app/components/dashboard/ingest.tsx b/apps/webapp/app/components/dashboard/ingest.tsx index e63f884..8a3fa00 100644 --- a/apps/webapp/app/components/dashboard/ingest.tsx +++ b/apps/webapp/app/components/dashboard/ingest.tsx @@ -31,6 +31,8 @@ export const Ingest = () => { }, { method: "POST", action: "/home/dashboard" }, ); + + setText(""); }; const isLoading = fetcher.state === "submitting"; diff --git a/apps/webapp/app/env.server.ts b/apps/webapp/app/env.server.ts index 4c9d379..ef50d4c 100644 --- a/apps/webapp/app/env.server.ts +++ b/apps/webapp/app/env.server.ts @@ -45,6 +45,8 @@ const EnvironmentSchema = z.object({ AUTH_GOOGLE_CLIENT_ID: z.string().optional(), AUTH_GOOGLE_CLIENT_SECRET: z.string().optional(), + ENABLE_EMAIL_LOGIN: z.coerce.boolean().default(false), + //Redis REDIS_HOST: z.string().default("localhost"), REDIS_PORT: z.coerce.number().default(6379), diff --git a/apps/webapp/app/routes/login._index.tsx b/apps/webapp/app/routes/login._index.tsx index 7a10b64..f4814bb 100644 --- a/apps/webapp/app/routes/login._index.tsx +++ b/apps/webapp/app/routes/login._index.tsx @@ -35,7 +35,7 @@ export async function loader({ request }: LoaderFunctionArgs) { { redirectTo, showGoogleAuth: isGoogleAuthSupported, - isDevelopment: env.NODE_ENV === "development", + emailLoginEnabled: env.ENABLE_EMAIL_LOGIN, }, { headers: { @@ -47,7 +47,7 @@ export async function loader({ request }: LoaderFunctionArgs) { return typedjson({ redirectTo: null, showGoogleAuth: isGoogleAuthSupported, - isDevelopment: env.NODE_ENV === "development", + emailLoginEnabled: env.ENABLE_EMAIL_LOGIN, }); } } @@ -80,7 +80,7 @@ export default function LoginPage() { )} - {data.isDevelopment && ( + {data.emailLoginEnabled && (