// 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": "Vercel", "description": "Deploy to Vercel (Functions, static assets, and Git previews).", "link": "https://vercel.com/docs/frameworks/full-stack/tanstack-start", "phase": "add-on", "modes": [ "file-router" ], "type": "deployment", "supportedPackageManagers": [ "npm", "yarn", "pnpm", "bun" ], "category": "deploy", "exclusive": [ "deploy" ], "color": "#000000", "priority": 140, "partner": { "id": "vercel", "tier": "gold" }, "integrations": [ { "type": "vite-plugin", "import": "import { nitro } from 'nitro/vite'", "code": "nitro()" } ], "id": "vercel", "version": "0.0.0", "packageAdditions": { "dependencies": { "nitro": "3.0.260610-beta" } }, "readme": "## Deploy to Vercel\n\n1. Push this repo to GitHub, GitLab, or Bitbucket\n2. In Vercel, choose **Add New > Project** and import the repo\n3. Keep the detected TanStack Start framework settings\n4. Add production values from `.env.example` under **Settings > Environment Variables**\n5. Deploy\n\nVercel runs the build script and deploys Nitro's output as Vercel Functions and\nstatic assets. The included `vercel.json` makes framework detection explicit.\n\nVariables prefixed with `VITE_` are included in the browser bundle. Keep secrets\nunprefixed so they remain server-only.\n", "readmeIsEjs": false, "files": { "vercel.json": "{\n \"$schema\": \"https://openapi.vercel.sh/vercel.json\",\n \"framework\": \"tanstack-start\"\n}\n" }, "deletedFiles": [] } satisfies AddOnCompiled