Fix props

This commit is contained in:
cte 2025-05-14 22:14:00 -07:00
parent 3127b69bfb
commit bbffb234af
3 changed files with 7 additions and 7 deletions

2
.env
View file

@ -20,6 +20,6 @@ NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL=/dashboard
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL=/dashboard
# ClickHouse
CLICKHOUSE_URL=your_clickhouse_url
CLICKHOUSE_URL=https://fake.us-west-2.aws.clickhouse.cloud:1234
CLICKHOUSE_USERNAME=default
CLICKHOUSE_PASSWORD=fake-your_clickhouse_password

View file

@ -13,7 +13,6 @@ env:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
@ -39,7 +38,6 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

View file

@ -6,10 +6,12 @@ import { Env } from '@/lib/server/env';
import { DeepLink } from './DeepLink';
export default async function Page(params: {
searchParams: { state?: string };
}) {
const { state } = await params.searchParams;
type Props = {
searchParams: Promise<{ state?: string }>;
};
export default async function Page(props: Props) {
const { state } = await props.searchParams;
if (!state) {
redirect(`/sign-in`);