Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ pnpm install
pnpm run dev
```

Municipal financial statements are loaded server-side from York Factory. Set
`YORK_FACTORY_API_URL` to override the default production API base (for example,
run Rails with `bin/rails server -p 3001`, then set
`YORK_FACTORY_API_URL=http://localhost:3001/api/v1` when starting Canada Spends).

## Linting

This project uses ESLint with Next.js configuration. Run linting with:
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"dev:municipal": "YORK_FACTORY_API_URL=http://127.0.0.1:3001/api/v1 next dev --turbopack",
"dev:ntp": "next dev",
"build": "pnpm extract && pnpm generate-statics && next build",
"generate-statics": "tsx scripts/generate-statics.ts",
"start": "next start",
"test": "vitest run",
"lint": "next lint",
"lint:fix": "next lint --fix",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,css,md}\"",
Expand Down Expand Up @@ -91,7 +93,8 @@
"simple-git-hooks": "^2.13.1",
"tailwindcss": "^4.1.12",
"tsx": "^4.20.4",
"typescript": "^5.9.2"
"typescript": "^5.9.2",
"vitest": "3.2.4"
},
"packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903",
"lint-staged": {
Expand Down
Loading