- Add dev credential from
.env.sample
cp .env.sample .env.local
- Update
.env.local
with credentials from the dev database
- Run
corepack enable yarn install yarn dev
- Visit
localhost:3000
- Add a
ts
file underscripts
. - Run it with
yarn script scripts/<file> [parameters]
.
Env | NEXT_PUBLIC_VERCEL_ENV |
NODE_ENV |
---|---|---|
Local | undefined |
development |
Preview | preview |
production |
Prod | production |
production |
- Setup
eslint
in IntelliJ- Go to
Preferences / Language & Frameworks / JavaScript / Code Quality Tools / ESLint
- Check
Manual ESLint configuration
- Set
ESLint package
toDetect package and configuration file from the nearest package.json
- If you use
Automatic ESLint configuration
, the setting depends on the global format in your IntelliJ, which may be different from the setting in this project.
- If you use
- [Optional] Check
Run eslint --fix on save
- Go to
- Setup
prettier
in IntelliJ- Go to
Preferences / Languages & Frameworks / JavaScript / Prettier
- Select the
Prettier package
from thenode_modules
. - [Optional] Check
On 'Reformat Code' action
- [Optional] Check
On save
- Go to