Setup
pnpm install
Create a .env.development(.local?)
based on .env.example
pnpm dev
Come with react-dev-inspector
To open, use keyboard shortcuts:
- On macOS:
Ctrl + Shift + Command + C
- On Windows / Linux:
Ctrl + Shift + Alt + C
Create a .env.staging(.local?)
based on .env.example
pnpm build --mode staging
Create a .env.production(.local?)
based on .env.example
pnpm build
About SWC config: SWC (@swc/core
) must share the same version accross the app. Package that use SWC:
@swc-jotai/debug-label
@swc-jotai/react-refresh
@swc/plugin-react-remove-properties
@vitejs/plugin-react-swc
@swc/core
is currently pinned to 1.6.13
in package.json