.env.sample
cp .env.sample .env.local
.env.local
with credentials from the dev databasecorepack enable
yarn install
yarn dev
localhost:3000
ts
file under scripts
.yarn script scripts/<file> [parameters]
.Env | NEXT_PUBLIC_VERCEL_ENV |
NODE_ENV |
---|---|---|
Local | undefined |
development |
Preview | preview |
production |
Prod | production |
production |
eslint
in IntelliJPreferences / Language & Frameworks / JavaScript / Code Quality Tools / ESLint
Manual ESLint configuration
ESLint package
to Detect package and configuration file from the nearest package.json
Automatic ESLint configuration
, the setting depends on the global format in
your IntelliJ, which may be different from the setting in this project.Run eslint --fix on save
prettier
in IntelliJPreferences / Languages & Frameworks / JavaScript / Prettier
Prettier package
from the node_modules
.On 'Reformat Code' action
On save