{"_id":"@caleblawson/deployer-vercel","name":"@caleblawson/deployer-vercel","dist-tags":{"latest":"0.10.7-alpha.0"},"versions":{"0.10.7-alpha.0":{"name":"@caleblawson/deployer-vercel","version":"0.10.7-alpha.0","description":"A Vercel deployer for Mastra applications.","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"keywords":[],"author":"","license":"Elastic-2.0","dependencies":{"@rollup/plugin-virtual":"^3.0.2","fs-extra":"^11.3.0","@mastra/deployer":"npm:@caleblawson/deployer@^0.10.7-alpha.0"},"devDependencies":{"@microsoft/api-extractor":"^7.52.8","@types/node":"^20.19.0","eslint":"^9.28.0","tsup":"^8.5.0","typescript":"^5.8.3","vitest":"^3.2.3","@internal/lint":"0.0.13","@mastra/core":"npm:@caleblawson/core@0.10.7-alpha.0"},"peerDependencies":{"@mastra/core":"^0.10.1-alpha.0"},"scripts":{"build":"tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting","build:watch":"pnpm build --watch","test":"vitest run","lint":"eslint ."},"gitHead":"c31e90130a5c9765c23f688ecea70adc6164543d","_id":"@caleblawson/deployer-vercel@0.10.7-alpha.0","_integrity":"sha512-wQF1UXaPHl4uU+kclrQIHQYy1LOHo1a58klcdUMVfnE7hy+kKPKcMUk9BKBdrnl+UlmveD3JzYBOwbnONmxPlQ==","_resolved":"C:\\Users\\caleb\\AppData\\Local\\Temp\\f73af81970213dfe3fc02b223d3162fb\\caleblawson-deployer-vercel-0.10.7-alpha.0.tgz","_from":"file:caleblawson-deployer-vercel-0.10.7-alpha.0.tgz","_nodeVersion":"21.2.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-wQF1UXaPHl4uU+kclrQIHQYy1LOHo1a58klcdUMVfnE7hy+kKPKcMUk9BKBdrnl+UlmveD3JzYBOwbnONmxPlQ==","shasum":"a094d762f28fec2f0b1652d2aac933e003aa71c5","tarball":"https://registry.npmjs.org/@caleblawson/deployer-vercel/-/deployer-vercel-0.10.7-alpha.0.tgz","fileCount":9,"unpackedSize":15941,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDYVbbHFAzgW5q9XAsU/mYY7mvHi9iWIoJF/3qiy7OuYAiEA1o0/GGf9V7ucD0KymXqsZ2vl1JvhimeJNA7XjPB1gEo="}]},"_npmUser":{"name":"caleblawson","email":"caleb.lawson@dynapt.com","actor":{"name":"caleblawson","email":"caleb.lawson@dynapt.com","type":"user"}},"directories":{},"maintainers":[{"name":"caleblawson","email":"caleb.lawson@dynapt.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/deployer-vercel_0.10.7-alpha.0_1750378189349_0.8821263857381745"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-20T00:09:49.280Z","0.10.7-alpha.0":"2025-06-20T00:09:49.551Z","modified":"2025-06-20T00:09:49.811Z"},"maintainers":[{"name":"caleblawson","email":"caleb.lawson@dynapt.com"}],"description":"A Vercel deployer for Mastra applications.","keywords":[],"license":"Elastic-2.0","readme":"# @mastra/deployer-vercel\r\n\r\nA Vercel deployer for Mastra applications.\r\n\r\n## Features\r\n\r\n- Deploy Mastra applications to Vercel\r\n- Zero-configuration serverless deployments\r\n- Automatic environment variable synchronization\r\n- Support for production, preview, and development environments\r\n- Instant global deployments with Edge Functions\r\n\r\n## Installation\r\n\r\n```bash\r\npnpm add @mastra/deployer-vercel\r\n```\r\n\r\n## Usage\r\n\r\nThe Vercel deployer is used as part of the Mastra framework:\r\n\r\n```typescript\r\nimport { Mastra } from '@mastra/core';\r\nimport { VercelDeployer } from '@mastra/deployer-vercel';\r\n\r\nconst deployer = new VercelDeployer({\r\n  teamSlug: 'your-team-slug',\r\n  projectName: 'your-project-name',\r\n  token: 'your-vercel-token',\r\n});\r\n\r\nconst mastra = new Mastra({\r\n  deployer,\r\n  // ... other Mastra configuration options\r\n});\r\n```\r\n\r\n## Configuration\r\n\r\n### Constructor Options\r\n\r\n- `teamSlug` (required): Your Vercel team slug\r\n- `projectName`: Name of your Vercel project (will be created if it doesn't exist)\r\n- `token`: Your Vercel API token (required for authentication)\r\n\r\n## Project Structure\r\n\r\nThe deployer creates:\r\n\r\n```\r\nyour-project/\r\n├── vercel.json     # Deployment configuration\r\n└── index.mjs       # Application entry point\r\n```\r\n\r\n### vercel.json Configuration\r\n\r\nDefault configuration:\r\n\r\n```json\r\n{\r\n  \"version\": 2,\r\n  \"installCommand\": \"npm install --omit=dev\",\r\n  \"builds\": [\r\n    {\r\n      \"src\": \"index.mjs\",\r\n      \"use\": \"@vercel/node\",\r\n      \"config\": {\r\n        \"includeFiles\": [\"**\"]\r\n      }\r\n    }\r\n  ],\r\n  \"routes\": [\r\n    {\r\n      \"src\": \"/(.*)\",\r\n      \"dest\": \"index.mjs\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\n## Environment Variables\r\n\r\nEnvironment variables are handled automatically through:\r\n\r\n- `.env` files in your project\r\n- Environment variables passed through the Mastra configuration\r\n- Vercel's environment variable UI\r\n\r\n## Deployment Process\r\n\r\nThe deployer:\r\n\r\n1. Configures your project with the necessary files\r\n2. Deploys to Vercel using the CLI\r\n3. Synchronizes environment variables for future deployments\r\n","readmeFilename":"README.md","_rev":"1-bd59b0fd58fcd4d63033bfdf17102b88"}