Skip to content

Commit

Permalink
install supabase
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartaithan committed Mar 19, 2023
1 parent 1c35d05 commit 797f1d9
Show file tree
Hide file tree
Showing 5 changed files with 325 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ yarn-error.log*
.pnpm-debug.log*

# local env files
.env
.env*.local

# vercel
Expand Down
13 changes: 11 additions & 2 deletions models/AppModel.ts
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>;
Loading

1 comment on commit 797f1d9

@vercel
Copy link

@vercel vercel bot commented on 797f1d9 Mar 19, 2023

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

Please sign in to comment.