-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c35d05
commit 797f1d9
Showing
5 changed files
with
325 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ yarn-error.log* | |
.pnpm-debug.log* | ||
|
||
# local env files | ||
.env | ||
.env*.local | ||
|
||
# vercel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
import { type ColorScheme } from "@mantine/core"; | ||
import { type Session, type User } from "@supabase/supabase-js"; | ||
import { type NextPage } from "next"; | ||
import { type AppProps } from "next/app"; | ||
|
||
export type NullableSession = Session | null; | ||
export type NullableUser = User | null; | ||
|
||
export interface SessionResponse { | ||
initialSession: NullableSession; | ||
user: NullableUser; | ||
} | ||
|
||
export interface IExtendedInitialProps { | ||
colorScheme: ColorScheme | null; | ||
} | ||
|
||
export interface IAppProps<P = object> | ||
extends AppProps<P>, | ||
extends AppProps<P & SessionResponse>, | ||
IExtendedInitialProps { | ||
Component: AppProps["Component"]; | ||
} | ||
|
||
export type IPage<P = object, IP = P> = NextPage<P, IP>; | ||
export type IPage<P = object & SessionResponse, IP = P> = NextPage<P, IP>; |
Oops, something went wrong.
797f1d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
trophy-hunt – ./
trophy-hunt-hartaithan.vercel.app
trophy-hunt.vercel.app
trophy-hunt-git-main-hartaithan.vercel.app