Skip to content

Commit

Permalink
node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
sadmann7 committed Dec 3, 2023
1 parent ca73edc commit 310c2f0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- uses: pnpm/[email protected]
name: Install pnpm
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- uses: pnpm/[email protected]
name: Install pnpm
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- uses: pnpm/[email protected]
name: Install pnpm
Expand Down
6 changes: 1 addition & 5 deletions src/app/(checkout)/checkout/[storeId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ export default async function CheckoutPage({ params }: CheckoutPageProps) {

if (!(isConnected && store.stripeAccountId)) {
return (
<Shell
id="checkout-not-connected"
aria-labelledby="checkout-not-connected-heading"
variant="centered"
>
<Shell variant="centered">
<div className="flex flex-col items-center justify-center gap-2 pt-20">
<div className="text-center text-2xl font-bold">
Store is not connected to Stripe
Expand Down
13 changes: 5 additions & 8 deletions src/app/(lobby)/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ interface PageProps {
}
}

// eslint-disable-next-line @typescript-eslint/require-await
async function getPageFromParams(params: PageProps["params"]) {
function getPageFromParams(params: PageProps["params"]) {
const slug = params?.slug?.join("/") ?? ""
const page = allPages.find((page) => page.slugAsParams === slug)

Expand All @@ -35,10 +34,8 @@ async function getPageFromParams(params: PageProps["params"]) {
return page
}

export async function generateMetadata({
params,
}: PageProps): Promise<Metadata> {
const page = await getPageFromParams(params)
export function generateMetadata({ params }: PageProps): Metadata {
const page = getPageFromParams(params)

if (!page) {
return {}
Expand Down Expand Up @@ -84,8 +81,8 @@ export async function generateStaticParams(): Promise<PageProps["params"][]> {
}))
}

export default async function PagePage({ params }: PageProps) {
const page = await getPageFromParams(params)
export default function Page({ params }: PageProps) {
const page = getPageFromParams(params)

if (!page) {
notFound()
Expand Down
2 changes: 1 addition & 1 deletion src/content/pages/about.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: About
description: About the project and the author of the project.
---

This is an open source e-commerce store built with everything new in [Next.js 13](https://nextjs.org/).
This is an open source e-commerce store built with everything new in [Next.js](https://nextjs.org/).
The project is still in development. You can follow the progress on [Twitter](https://twitter.com/sadmann17).

## Tech stack used
Expand Down

1 comment on commit 310c2f0

@vercel
Copy link

@vercel vercel bot commented on 310c2f0 Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.