diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml index 5b547ba8..e117e5d2 100644 --- a/.github/workflows/code-check.yml +++ b/.github/workflows/code-check.yml @@ -18,7 +18,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - uses: pnpm/action-setup@v2.2.4 name: Install pnpm @@ -56,7 +56,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - uses: pnpm/action-setup@v2.2.4 name: Install pnpm @@ -96,7 +96,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - uses: pnpm/action-setup@v2.2.4 name: Install pnpm diff --git a/src/app/(checkout)/checkout/[storeId]/page.tsx b/src/app/(checkout)/checkout/[storeId]/page.tsx index 04e00b56..6f9aed95 100644 --- a/src/app/(checkout)/checkout/[storeId]/page.tsx +++ b/src/app/(checkout)/checkout/[storeId]/page.tsx @@ -67,11 +67,7 @@ export default async function CheckoutPage({ params }: CheckoutPageProps) { if (!(isConnected && store.stripeAccountId)) { return ( - +
Store is not connected to Stripe diff --git a/src/app/(lobby)/[...slug]/page.tsx b/src/app/(lobby)/[...slug]/page.tsx index d8917a7d..89ade968 100644 --- a/src/app/(lobby)/[...slug]/page.tsx +++ b/src/app/(lobby)/[...slug]/page.tsx @@ -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) @@ -35,10 +34,8 @@ async function getPageFromParams(params: PageProps["params"]) { return page } -export async function generateMetadata({ - params, -}: PageProps): Promise { - const page = await getPageFromParams(params) +export function generateMetadata({ params }: PageProps): Metadata { + const page = getPageFromParams(params) if (!page) { return {} @@ -84,8 +81,8 @@ export async function generateStaticParams(): Promise { })) } -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() diff --git a/src/content/pages/about.mdx b/src/content/pages/about.mdx index 04b2c0a5..4ecdb10a 100644 --- a/src/content/pages/about.mdx +++ b/src/content/pages/about.mdx @@ -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