Next.js dashboard to fetch real-time data on charge points realm.
-
Ask and set NPM_TOKEN env var:
export NPM_TOKEN=<token>
-
Install dependencies:
npm install
-
Run the app:
npm run dev
- Browse http://localhost:3001
NEXT_PUBLIC_API_URL=http://localhost:3000Deploy previews are on demand instead of being rebuilt on every push. A
preview is built and deployed by the
deploy-preview-netlify workflow
only when:
- A trusted member comments
/deployon the pull request, or - The pull request is marked ready for review (leaves draft state).
- In the Netlify UI, disable automatic Deploy Previews so previews are built only through the workflow.
- Add these repository secrets (Settings → Secrets → Actions):
NETLIFY_AUTH_TOKEN— a Netlify personal access token.NETLIFY_SITE_ID— the site's API ID (Netlify → Site configuration → General).NPM_TOKEN— already used by the other workflows, needed for private packages.