Skip to content

Commit 0f9a8c5

Browse files
committed
Update to latest nextjs.
add solver
1 parent 5c71909 commit 0f9a8c5

33 files changed

+5705
-6073
lines changed

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy Next.js site to Pages
33
on:
44
# Runs on pushes targeting the default branch
55
push:
6-
branches: ["main"]
6+
branches: ["main", "upgrade"]
77

88
# Allows you to run this workflow manually from the Actions tab
99
workflow_dispatch:
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929
- name: Detect package manager
3030
id: detect-package-manager
3131
run: |
@@ -40,24 +40,24 @@ jobs:
4040
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
4141
exit 0
4242
else
43-
echo "Unable to determine packager manager"
43+
echo "Unable to determine package manager"
4444
exit 1
4545
fi
4646
- name: Setup Node
47-
uses: actions/setup-node@v3
47+
uses: actions/setup-node@v4
4848
with:
49-
node-version: "16"
49+
node-version: "20"
5050
cache: ${{ steps.detect-package-manager.outputs.manager }}
5151
- name: Setup Pages
52-
uses: actions/configure-pages@v3
52+
uses: actions/configure-pages@v5
5353
with:
5454
# Automatically inject basePath in your Next.js configuration file and disable
5555
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
5656
#
5757
# You may remove this line if you want to manage the configuration yourself.
5858
static_site_generator: next
5959
- name: Restore cache
60-
uses: actions/cache@v3
60+
uses: actions/cache@v4
6161
with:
6262
path: |
6363
.next/cache
@@ -70,10 +70,8 @@ jobs:
7070
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
7171
- name: Build with Next.js
7272
run: ${{ steps.detect-package-manager.outputs.runner }} next build
73-
- name: Static HTML export with Next.js
74-
run: ${{ steps.detect-package-manager.outputs.runner }} next export
7573
- name: Upload artifact
76-
uses: actions/upload-pages-artifact@v1
74+
uses: actions/upload-pages-artifact@v3
7775
with:
7876
path: ./out
7977

@@ -87,4 +85,4 @@ jobs:
8785
steps:
8886
- name: Deploy to GitHub Pages
8987
id: deployment
90-
uses: actions/deploy-pages@v1
88+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
# dependencies
44
/node_modules
55
/.pnp
6-
.pnp.js
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
712

813
# testing
914
/coverage
@@ -25,8 +30,8 @@ yarn-debug.log*
2530
yarn-error.log*
2631
.pnpm-debug.log*
2732

28-
# local env files
29-
.env*.local
33+
# env files (can opt-in for committing if needed)
34+
.env*
3035

3136
# vercel
3237
.vercel

eslint.config.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { dirname } from "path";
2+
import { fileURLToPath } from "url";
3+
import { FlatCompat } from "@eslint/eslintrc";
4+
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = dirname(__filename);
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
});
11+
12+
const eslintConfig = [
13+
...compat.extends("next/core-web-vitals", "next/typescript"),
14+
];
15+
16+
export default eslintConfig;

next.config.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

next.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { NextConfig } from "next";
2+
3+
const nextConfig: NextConfig = {
4+
/* config options here */
5+
};
6+
7+
export default nextConfig;

0 commit comments

Comments
 (0)