mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-05 18:39:32 +01:00
The schema fix landed in #138, but the repo still told you to operate a Supabase we do not have. docs/SUPABASE_SETUP.md opened with "Completed Setup" for a hosted project jkjmhtirxwhljpkcfxqe.supabase.co and said to apply migrations by pasting SQL into a supabase.com dashboard. Two unreferenced scripts printed the same instruction, one handing out a psql string against pooler.supabase.com, and the CLI's .temp cache with the old project ref was committed — twice, once nested under supabase/migrations/. That is not stale clutter, it is the outage. A wrong pointer to a real-looking place is worse than no pointer: no pointer makes someone ask, a plausible one makes them assume it was handled. Nobody pasted anything, the eleven migrations were never applied, and /api/health served PGRST205 for months while every deploy went green. So the doc now describes what is actually true — self-hosted on bitbaum at supabase.orangecat.ch, our tables in the `botsmann` schema because one database backs several apps and `public` is orangecat's, and migrations applied automatically on deploy by fleetcrown's apply-schema.sh against the botsmann._deploy_schema_history ledger. Nothing is pasted anywhere. 280 lines became 100. Fixing today's copies only clears today's copies, so check:selfhost joins verify: it fails on supabase.com/dashboard, app.supabase.com, pooler URLs and real project refs, allows supabase.com/docs because the product documentation is still correct for us, and exempts docs/archive/ so history can stay honest. Proven to fail before shipping — it catches an injected dashboard link and a project ref, and leaves the your-project.supabase.co placeholder alone. Claude-Session: https://claude.ai/code/session_018waGt1ieA9TjpscqrbrnGb Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
101 lines
2.9 KiB
JSON
101 lines
2.9 KiB
JSON
{
|
|
"name": "botsmann",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"build:ci": "npm ci && npm run build",
|
|
"start": "next start",
|
|
"test": "jest",
|
|
"test:e2e": "NODE_ENV=test playwright test",
|
|
"test:watch": "jest --watch",
|
|
"test:db": "tsx scripts/test-db-connection.ts",
|
|
"lint": "eslint . --max-warnings 0",
|
|
"lint:fix": "eslint . --fix",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"typecheck": "tsc --noEmit",
|
|
"check:selfhost": "bash scripts/ci/no-hosted-supabase.sh",
|
|
"verify": "npm run format:check && npm run lint && npm run typecheck && npm run check:selfhost && npm run test && npm run build",
|
|
"prepare": "husky install",
|
|
"lint-staged": "lint-staged"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-ses": "^3.980.0",
|
|
"@giscus/react": "^3.1.0",
|
|
"@headlessui/react": "^2.2.0",
|
|
"@supabase/ssr": "^0.8.0",
|
|
"@supabase/supabase-js": "^2.47.10",
|
|
"@tailwindcss/forms": "^0.5.7",
|
|
"@tailwindcss/typography": "^0.5.16",
|
|
"@xenova/transformers": "^2.17.2",
|
|
"ai-kit": "github:bitbaum/ai-kit#v0.4.0",
|
|
"autoprefixer": "^10.4.17",
|
|
"date-fns": "^4.1.0",
|
|
"gray-matter": "^4.0.3",
|
|
"next": "^16.2.12",
|
|
"next-mdx-remote": "^6.0.0",
|
|
"pdf-parse": "^2.4.5",
|
|
"postcss": "^8.5.10",
|
|
"react": "^19.2.8",
|
|
"react-dom": "^19.2.8",
|
|
"react-hook-form": "^7.54.2",
|
|
"react-icons": "^5.5.0",
|
|
"rehype-autolink-headings": "^7.1.0",
|
|
"rehype-slug": "^6.0.0",
|
|
"remark-gfm": "^4.0.1",
|
|
"sonner": "^2.0.7",
|
|
"tailwindcss": "^3.4.1",
|
|
"zod": "^3.24.1"
|
|
},
|
|
"overrides": {
|
|
"glob": "^10.5.0",
|
|
"fast-xml-parser": "^5.7.0",
|
|
"protobufjs": "^7.6.5",
|
|
"ws": "^8.21.1",
|
|
"handlebars": "^4.7.9",
|
|
"flatted": "^3.4.2",
|
|
"postcss": "$postcss",
|
|
"@babel/core": "^7.29.6",
|
|
"yaml": "^2.8.3",
|
|
"sharp": "^0.35.3",
|
|
"picomatch@2": "2.3.2",
|
|
"picomatch@4": "4.0.5",
|
|
"minimatch@3": "3.1.5",
|
|
"minimatch@9": "9.0.9",
|
|
"js-yaml@3": "3.15.0",
|
|
"js-yaml@4": "4.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.49.0",
|
|
"@testing-library/jest-dom": "^6.6.3",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/node": "^20.17.17",
|
|
"@types/react": "^19.2.17",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@typescript-eslint/eslint-plugin": "^8.65.0",
|
|
"@typescript-eslint/parser": "^8.65.0",
|
|
"daisyui": "^5.0.43",
|
|
"eslint": "^9.39.5",
|
|
"eslint-config-next": "^16.2.12",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-prettier": "^5.5.6",
|
|
"husky": "^9.1.6",
|
|
"jest": "^29.7.0",
|
|
"jest-environment-jsdom": "^30.2.0",
|
|
"lint-staged": "^15.2.10",
|
|
"node-mocks-http": "^1.17.2",
|
|
"prettier": "^3.3.3",
|
|
"ts-jest": "^29.2.5",
|
|
"typescript": "^5.7.3"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx}": [
|
|
"eslint --cache --fix",
|
|
"prettier --write"
|
|
],
|
|
"*.{json,md,css,scss,html,yml,yaml}": "prettier --write"
|
|
}
|
|
}
|