// Generated by scripts/generate-manifest.mjs. Do not edit by hand. import type { AddOnCompiled } from '../../../../../types.js' type TemplateRecord = Record type TemplateAddOn = TemplateRecord & { integrations?: Array routes?: Array } type TemplateRenderContext = { [key: string]: any packageManager: any projectName: any typescript: any tailwind: any blank: any js: any jsx: any fileRouter: any codeRouter: any routerOnly: any includeExamples: any addOnEnabled: Record addOnOption: Record addOns: Array integrations: Array routes: Array getPackageManagerAddScript: (...args: Array) => string getPackageManagerRunScript: (...args: Array) => string getPackageManagerExecuteScript: (...args: Array) => string relativePath: (...args: Array) => string integrationImportContent: (...args: Array) => string integrationImportCode: (...args: Array) => string | undefined renderTemplate: (content: string) => string ignoreFile: () => never } type TemplateRenderer = (context: TemplateRenderContext) => string | undefined function __escapeXML(value: unknown) { if (value === undefined || value === null) { return '' } return String(value).replace(/[&<>'"]/g, (character) => { switch (character) { case '&': return '&' case '<': return '<' case '>': return '>' case '"': return '"' case "'": return ''' default: return character } }) } export function getManifestTemplateKey(template: string) { let hash = 0x811c9dc5 for (let i = 0; i < template.length; i++) { hash ^= template.charCodeAt(i) hash = Math.imul(hash, 0x01000193) >>> 0 } return `${hash.toString(16).padStart(8, '0')}:${template.length}` } const templateRenderers: Record = { } export function hasManifestTemplate(template: string) { return getManifestTemplateKey(template) in templateRenderers } export function renderManifestTemplate( template: string, context: TemplateRenderContext, ) { const key = getManifestTemplateKey(template) const renderer = templateRenderers[key] if (!renderer) { throw new Error(`Template ${key} was not precompiled into the manifest`) } return renderer(context) ?? '' } export const addOn = { "name": "Netlify", "description": "Deploy to Netlify (Functions and Edge Functions, GitHub-driven).", "link": "https://docs.netlify.com", "phase": "add-on", "modes": [ "file-router", "code-router" ], "type": "deployment", "category": "deploy", "exclusive": [ "deploy" ], "color": "#00C7B7", "priority": 180, "partner": { "id": "netlify", "tier": "gold" }, "integrations": [ { "type": "vite-plugin", "import": "import netlify from '@netlify/vite-plugin-tanstack-start'", "code": "netlify()" } ], "id": "netlify", "version": "0.0.0", "packageAdditions": { "devDependencies": { "@netlify/vite-plugin-tanstack-start": "^1.2.15" }, "pnpm": { "onlyBuiltDependencies": [ "sharp" ] } }, "readme": "## Deploy to Netlify\n\nThis project ships with `netlify.toml` configured for a Netlify site:\n\n1. Push this repo to GitHub\n2. Visit https://app.netlify.com/start and import the repo\n3. Netlify auto-detects the build (`vite build` → `dist/client`)\n4. Open **Site settings → Environment variables** and add anything from `.env.example` that needs a real value in production\n5. Trigger the first deploy\n\nServer functions and API routes run on Netlify Functions. For lower-latency request handling, see Netlify Edge Functions: https://docs.netlify.com/edge-functions/overview.\n", "readmeIsEjs": false, "files": { "netlify.toml": "[build]\n command = \"vite build\"\n publish = \"dist/client\"\n[dev]\n command = \"npm run dev\"\n targetPort = 3000\n port = 8888\n" }, "deletedFiles": [], "smallLogo": "" } satisfies AddOnCompiled