自宅センサモニターHarmonicaのNext.js製Webフロントエンドアプリ。
- Node 20
- npm 10
- (Recommended) nvm: https://github.com/nvm-sh/nvm
nvm use
npm ci
Create .env.local
file.
NEXT_PUBLIC_HASURA_URL=https://hasura.example.com
HASURA_ADMIN_SECRET=myadminsecretkey
NEXT_PUBLIC_SMOKEPING_NAMES=Ping MyTarget
NEXT_PUBLIC_SMOKEPING_URLS=https://smokeping.example.com
NEXT_PUBLIC_SMOKEPING_TARGETS=MyGroup.MyTarget
npm run codegen -- --watch
npm run dev
nvm use
npm ci
npm run build
rsync -av --delete out/ /path/to/