From 6a0935d893bd542f4429453be65a06307e990660 Mon Sep 17 00:00:00 2001 From: miran248 Date: Sun, 27 Aug 2023 20:05:57 +0200 Subject: [PATCH] chore: use public kratos url with redirects --- src/website/app/root.tsx | 4 ++++ src/website/app/routes/api.webhooks.oidc.$.ts | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/website/app/root.tsx b/src/website/app/root.tsx index b17e2e7..7ae8b26 100644 --- a/src/website/app/root.tsx +++ b/src/website/app/root.tsx @@ -40,6 +40,10 @@ const App = () => ( + + + + diff --git a/src/website/app/routes/api.webhooks.oidc.$.ts b/src/website/app/routes/api.webhooks.oidc.$.ts index 88bc5d6..6391491 100644 --- a/src/website/app/routes/api.webhooks.oidc.$.ts +++ b/src/website/app/routes/api.webhooks.oidc.$.ts @@ -3,7 +3,8 @@ import { redirect } from "remix-typedjson"; import { sessionStorage } from "~/session.server"; import { loaderGuard } from "~/utils"; -const kratosUrl = process.env.KRATOS_PUBLIC_ENDPOINT; +// const kratosUrl = process.env.KRATOS_PUBLIC_ENDPOINT; +const kratosUrl = "https://public-kratos.248.sh"; export const loader = async ({ params, request }: LoaderArgs) => { const guard = await loaderGuard(request);