Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit 75c320e

Browse files
committed
feat(portal/routes): redirect /admin to axiom
1 parent a889520 commit 75c320e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

apps/portal/app/routes/admin.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* eslint-disable node/prefer-global/process */
2+
import type { LoaderFunction } from '@remix-run/node'
3+
import { redirect } from '@remix-run/node'
4+
5+
export const loader: LoaderFunction = async () => {
6+
const adminURL
7+
= process.env.NODE_ENV === 'development'
8+
? `${process.env.CUHACKING_2025_AXIOM_LOCAL_URL}/admin`
9+
: `${process.env.CUHACKING_2025_AXIOM_PUBLIC_URL}/admin`
10+
11+
return redirect(adminURL)
12+
}

0 commit comments

Comments
 (0)