{"_id":"@caleblawson/deployer-netlify","name":"@caleblawson/deployer-netlify","dist-tags":{"latest":"0.10.7-alpha.0"},"versions":{"0.10.7-alpha.0":{"name":"@caleblawson/deployer-netlify","version":"0.10.7-alpha.0","description":"A Netlify 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","date-fns":"^4.1.0","execa":"^9.6.0","zod":"^3.25.57","@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-netlify@0.10.7-alpha.0","_integrity":"sha512-kKekXBq58b5l+V7+QKFYQs2so1+iUyQyovQQUq1DHUtAzRq58rUpbmqgh504IQOpB8S+GBv4Bicca4clYMoEvw==","_resolved":"C:\\Users\\caleb\\AppData\\Local\\Temp\\fa10ad689f9898e67ed01971e996a550\\caleblawson-deployer-netlify-0.10.7-alpha.0.tgz","_from":"file:caleblawson-deployer-netlify-0.10.7-alpha.0.tgz","_nodeVersion":"21.2.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-kKekXBq58b5l+V7+QKFYQs2so1+iUyQyovQQUq1DHUtAzRq58rUpbmqgh504IQOpB8S+GBv4Bicca4clYMoEvw==","shasum":"0e6d867d5f4049052246086954ac3f1212b61610","tarball":"https://registry.npmjs.org/@caleblawson/deployer-netlify/-/deployer-netlify-0.10.7-alpha.0.tgz","fileCount":9,"unpackedSize":15960,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDmhfvL+4gJhu+uVfxz3G4UnS0Ik/hzb6t8ERsjHEeGUAiEAp9e7FGWwbgLskf31BwZXP+9DjSzjXBR8ipHnR+KxYRA="}]},"_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-netlify_0.10.7-alpha.0_1750378185485_0.04550104804609467"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-20T00:09:45.389Z","0.10.7-alpha.0":"2025-06-20T00:09:45.668Z","modified":"2025-06-20T00:09:45.940Z"},"maintainers":[{"name":"caleblawson","email":"caleb.lawson@dynapt.com"}],"description":"A Netlify deployer for Mastra applications.","keywords":[],"license":"Elastic-2.0","readme":"# @mastra/deployer-netlify\r\n\r\nA Netlify deployer for Mastra applications.\r\n\r\n## Features\r\n\r\n- Deploy Mastra applications to Netlify Functions\r\n- Automatic site creation and configuration\r\n- Serverless function support with Edge Functions\r\n- Zero-configuration deployments\r\n\r\n## Installation\r\n\r\n```bash\r\npnpm add @mastra/deployer-netlify\r\n```\r\n\r\n## Usage\r\n\r\nThe Netlify deployer is used as part of the Mastra framework:\r\n\r\n```typescript\r\nimport { Mastra } from '@mastra/core';\r\nimport { NetlifyDeployer } from '@mastra/deployer-netlify';\r\n\r\nconst deployer = new NetlifyDeployer({\r\n  scope: 'your-team-id',\r\n  projectName: 'your-project-name',\r\n  token: 'your-netlify-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- `scope` (required): Your Netlify team slug or ID\r\n- `projectName`: Name of your Netlify site (will be created if it doesn't exist)\r\n- `token`: Your Netlify authentication token\r\n\r\n## Project Structure\r\n\r\nThe deployer automatically creates the following structure:\r\n\r\n```\r\nyour-project/\r\n├── netlify/\r\n│   └── functions/\r\n│       └── api/\r\n└── netlify.toml\r\n```\r\n\r\n### netlify.toml Configuration\r\n\r\nThe deployer creates a `netlify.toml` with the following defaults:\r\n\r\n```toml\r\n[functions]\r\nnode_bundler = \"esbuild\"\r\ndirectory = \"/netlify/functions\"\r\n\r\n[[redirects]]\r\nforce = true\r\nfrom = \"/*\"\r\nstatus = 200\r\nto = \"/.netlify/functions/api/:splat\"\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- Netlify's environment variable UI\r\n\r\n## Deployment Process\r\n\r\nThe deployer will:\r\n\r\n1. Create a new site if it doesn't exist\r\n2. Configure the site with your environment variables\r\n3. Deploy your application to Netlify Functions\r\n","readmeFilename":"README.md","_rev":"1-5a623542469bed253c6ec753f4e30280"}