Skip to content

Commit

Permalink
fix(template): bump next to 12.3.1 and fix AppType (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
nexxeln committed Sep 20, 2022
1 parent 3fd2538 commit ecc7642
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-lemons-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": minor
---

bump next to 12.3.1 and fix AppType
4 changes: 2 additions & 2 deletions cli/template/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"next": "12.2.5",
"next": "12.3.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"zod": "^3.18.0"
Expand All @@ -21,7 +21,7 @@
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"eslint": "8.22.0",
"eslint-config-next": "12.2.5",
"eslint-config-next": "12.3.1",
"typescript": "4.7.4"
}
}
5 changes: 3 additions & 2 deletions cli/template/page-studs/_app/with-auth-trpc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import { httpBatchLink } from "@trpc/client/links/httpBatchLink";
import { loggerLink } from "@trpc/client/links/loggerLink";
import { withTRPC } from "@trpc/next";
import { SessionProvider } from "next-auth/react";
import type { AppType } from "next/dist/shared/lib/utils";
import superjson from "superjson";
import type { AppType } from "next/app";
import type { AppRouter } from "../server/router";
import type { Session } from "next-auth";
import "../styles/globals.css";

const MyApp: AppType = ({
const MyApp: AppType<{ session: Session | null }> = ({
Component,
pageProps: { session, ...pageProps },
}) => {
Expand Down
5 changes: 3 additions & 2 deletions cli/template/page-studs/_app/with-auth.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import "../styles/globals.css";
import type { AppType } from "next/dist/shared/lib/utils";
import type { AppType } from "next/app";
import type { Session } from "next-auth";
import { SessionProvider } from "next-auth/react";

const MyApp: AppType = ({
const MyApp: AppType<{ session: Session | null }> = ({
Component,
pageProps: { session, ...pageProps },
}) => {
Expand Down

1 comment on commit ecc7642

@vercel
Copy link

@vercel vercel bot commented on ecc7642 Sep 20, 2022

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:

create-t3-app – ./

create-t3-app-t3-oss.vercel.app
create-t3-app-git-main-t3-oss.vercel.app
create-t3-app-nu.vercel.app

Please sign in to comment.