Skip to content

Commit ceaf68f

Browse files
rickstaaclaude
andauthored
feat: migrate from Create React App to Next.js (#281)
Replace the deprecated CRA framework with Next.js 15 (App Router) to unblock TypeScript 5 and other dependency upgrades. Co-authored-by: Claude <noreply@anthropic.com>
1 parent 036ddc8 commit ceaf68f

25 files changed

Lines changed: 7474 additions & 38211 deletions

.gitignore

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@
88
# testing
99
/coverage
1010

11+
# next.js
12+
/.next/
13+
/out/
14+
1115
# production
1216
/build
1317

1418
# misc
1519
.DS_Store
20+
*.pem
1621
.env.local
1722
.env.development.local
1823
.env.test.local
@@ -25,5 +30,10 @@ yarn-error.log*
2530
# IDEA
2631
.vscode
2732
*.code-workspace
28-
29-
.vercel
33+
34+
# vercel
35+
.vercel
36+
37+
# typescript
38+
*.tsbuildinfo
39+
next-env.d.ts

eslint.config.mjs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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"),
14+
{
15+
rules: {
16+
"@next/next/no-img-element": "off",
17+
},
18+
},
19+
];
20+
21+
export default eslintConfig;

next.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type { NextConfig } from "next";
2+
3+
const nextConfig: NextConfig = {
4+
output: "export",
5+
images: {
6+
unoptimized: true,
7+
},
8+
};
9+
10+
export default nextConfig;

0 commit comments

Comments
 (0)