Skip to content

Commit 73a3d47

Browse files
committed
refactor: migrage nextjs
1 parent cecf1ee commit 73a3d47

File tree

257 files changed

+5268
-15384
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+5268
-15384
lines changed

.env.template

-35
This file was deleted.

.eslintrc.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": ["react-app", "prettier"],
2+
"extends": ["next/core-web-vitals", "prettier"],
33
"plugins": ["prettier"],
44
"rules": {
55
"prettier/prettier": "error",
@@ -9,6 +9,12 @@
99
"no-extend-native": "off",
1010
"no-sequences": "off",
1111
"react-hooks/exhaustive-deps": "off",
12-
"react/jsx-pascal-case": "off"
12+
"react/jsx-pascal-case": "off",
13+
14+
// TODO:
15+
"react/no-unescaped-entities":"off",
16+
"@next/next/no-img-element":"off",
17+
"@next/next/no-page-custom-font":"off",
18+
"react/no-children-prop":"off"
1319
}
1420
}

.gitignore

+18-7
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,35 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7+
.yarn/install-state.gz
78

89
# testing
910
/coverage
1011

12+
# next.js
13+
/.next/
14+
/out/
15+
1116
# production
1217
/build
1318

1419
# misc
1520
.DS_Store
16-
.env.local
17-
.env.development.local
18-
.env.test.local
19-
.env.production.local
21+
*.pem
2022

23+
# debug
2124
npm-debug.log*
2225
yarn-debug.log*
2326
yarn-error.log*
2427

25-
.vscode
26-
.env
27-
.tool-versions
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts
37+
38+
.vscode/

.lintstagedrc.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const path = require('path')
2+
3+
const buildEslintCommand = (filenames) =>
4+
`next lint --fix --file ${filenames
5+
.map((f) => path.relative(process.cwd(), f))
6+
.join(' --file ')}`
7+
8+
module.exports = {
9+
'*.{js,jsx,ts,tsx}': [buildEslintCommand],
10+
}

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Before running locally, make sure to duplicate `.env.template` to a new file cal
2424

2525
In the project directory, you can run:
2626

27-
### `yarn start`
27+
### `yarn run dev`
2828

2929
Runs the app in the development mode.\
3030
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
@@ -67,8 +67,7 @@ Generate webp format image
6767

6868
## Deployment
6969

70-
Using Scroll's team Netlify: https://app.netlify.com/sites/scroll-io/overview
70+
Using Scroll's team Netlify: https://vercel.com/scroll-tech/frontends
7171

7272
- Production (SCROLL_ENVIRONMENT=MAINNET): https://scroll.io
73-
- Sepolia (SCROLL_ENVIRONMENT=SEPOLIA): https://sepolia.env.scroll.io
74-
- Staging (SCROLL_ENVIRONMENT=STAGING): https://staging.env.scroll.io
73+
- Sepolia (SCROLL_ENVIRONMENT=SEPOLIA): frontends-git-sepolia-scroll-tech.vercel.app

craco.config.js

-91
This file was deleted.

0 commit comments

Comments
 (0)