feat: Add production schema deployment scripts

- Create apply-schema-prod.js for deploying schema to any SurrealDB instance
- Create deploy-schema.sh to easily deploy using .prod.env
- Add npm scripts: schema:apply (local) and schema:deploy (production)

Usage:
  pnpm schema:deploy  # Deploy to production using .prod.env

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-09 15:44:05 +00:00
parent 740d819622
commit d56e19c561
3 changed files with 131 additions and 1 deletions

View File

@@ -7,7 +7,9 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"test": "npx magnitude"
"test": "npx magnitude",
"schema:apply": "node scripts/apply-schema.js",
"schema:deploy": "./scripts/deploy-schema.sh"
},
"dependencies": {
"@ai-sdk/google": "latest",