mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-10-02 17:54:22 +10:00
Vercel now deploys Reactive Resume as two services in one project: `frontend` serves the static Vite build from apps/web/dist, and `backend` runs the Hono server Function from apps/server. Top-level rewrites send server-owned paths (/api, /uploads, /mcp, /.well-known, robots.txt, sitemap.xml, llms.txt, schema.json, index.html) and every path without a file extension to `backend`, so HTML shells keep their injected SEO metadata. Paths with a file extension go to `frontend`. The service builder needs a few accommodations: - apps/server/vercel.mjs replaces api/index.mjs as the entrypoint, because a service entrypoint must exist before the build runs. - `outputDirectory: "."` stops the builder from using the Docker entrypoint in dist/ as the Function handler. - The builder loads external CommonJS dependencies through pnpm links that it leaves out of the Function. ioredis and react-reconciler are now bundled with their dependencies, and bcrypt is replaced with bcryptjs, which reads and writes the same $2b$ hashes. The Vercel compatibility workflow now builds with the services framework and loads a copy of the backend Function outside the checkout, so a dependency missing from the Function fails CI. The stale PDFKit trace checks are removed. Existing Vercel installations must set Framework Preset to Services before redeploying; the self-hosting guide documents this.
103 lines
3.2 KiB
JSON
103 lines
3.2 KiB
JSON
{
|
|
"name": "server",
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"build": "tsdown",
|
|
"start": "node dist/index.mjs",
|
|
"docs:gen": "tsx src/openapi/generate-spec.ts",
|
|
"typecheck": "tsgo --noEmit",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
"test:ci": "vitest run --reporter=default --reporter=github-actions --reporter=json --reporter=junit --outputFile.json=reports/vitest-results.json --outputFile.junit=reports/vitest-junit.xml --passWithNoTests",
|
|
"test:agent": "vitest run --reporter=agent --reporter=json --outputFile.json=reports/vitest-results.json --passWithNoTests"
|
|
},
|
|
"dependencies": {
|
|
"@ai-sdk/anthropic": "^4.0.68",
|
|
"@ai-sdk/cerebras": "^3.0.59",
|
|
"@ai-sdk/cohere": "^4.0.52",
|
|
"@ai-sdk/deepseek": "^3.0.56",
|
|
"@ai-sdk/fireworks": "^3.0.62",
|
|
"@ai-sdk/google": "^4.0.85",
|
|
"@ai-sdk/groq": "^4.0.52",
|
|
"@ai-sdk/mistral": "^4.0.54",
|
|
"@ai-sdk/openai": "^4.0.81",
|
|
"@ai-sdk/openai-compatible": "^3.0.59",
|
|
"@ai-sdk/perplexity": "^5.0.3",
|
|
"@ai-sdk/togetherai": "^3.0.60",
|
|
"@ai-sdk/xai": "^5.0.12",
|
|
"@aws-sdk/client-s3": "^3.1143.0",
|
|
"@better-auth/api-key": "^1.7.6",
|
|
"@better-auth/drizzle-adapter": "^1.7.6",
|
|
"@better-auth/infra": "^0.4.13",
|
|
"@better-auth/oauth-provider": "^1.7.6",
|
|
"@better-auth/passkey": "^1.7.6",
|
|
"@bramus/specificity": "^2.4.2",
|
|
"@formepdf/core": "0.25.0",
|
|
"@formepdf/react": "0.25.0",
|
|
"@hono/node-server": "^2.1.3",
|
|
"@modelcontextprotocol/sdk": "^1.31.0",
|
|
"@orpc/client": "^1.15.4",
|
|
"@orpc/experimental-ratelimit": "^1.15.4",
|
|
"@orpc/json-schema": "^1.15.4",
|
|
"@orpc/openapi": "^1.15.4",
|
|
"@orpc/server": "^1.15.4",
|
|
"@orpc/zod": "^1.15.4",
|
|
"@reactive-resume/api": "workspace:*",
|
|
"@reactive-resume/auth": "workspace:*",
|
|
"@reactive-resume/db": "workspace:*",
|
|
"@reactive-resume/env": "workspace:*",
|
|
"@reactive-resume/mcp": "workspace:*",
|
|
"@reactive-resume/schema": "workspace:*",
|
|
"@reactive-resume/utils": "workspace:*",
|
|
"@sindresorhus/slugify": "^3.0.1",
|
|
"@t3-oss/env-core": "^0.13.11",
|
|
"@uiw/color-convert": "^2.10.3",
|
|
"@vercel/blob": "^2.8.0",
|
|
"@vercel/functions": "^3.9.9",
|
|
"ai": "^7.0.122",
|
|
"bcryptjs": "^3.0.3",
|
|
"better-auth": "1.7.6",
|
|
"cjk-regex": "^3.5.0",
|
|
"css-tree": "^3.2.1",
|
|
"drizzle-orm": "1.0.0-rc.4",
|
|
"drizzle-zod": "1.0.0-beta.14-a36c63d",
|
|
"es-toolkit": "^1.52.0",
|
|
"fast-json-patch": "^3.1.1",
|
|
"fast-png": "^8.0.0",
|
|
"fflate": "^0.8.3",
|
|
"hono": "^4.13.11",
|
|
"ioredis": "^6.0.0",
|
|
"jose": "^6.2.12",
|
|
"jsonrepair": "^3.15.0",
|
|
"node-html-parser": "^9.0.4",
|
|
"nodemailer": "^10.0.12",
|
|
"ollama-ai-provider-v2": "^4.0.1",
|
|
"pg": "^8.23.0",
|
|
"react": "^19.3.0",
|
|
"react-email": "^6.11.0",
|
|
"react-reconciler": "0.34.0",
|
|
"resumable-stream": "^2.2.13",
|
|
"sanitize-html": "^2.17.7",
|
|
"sharp": "^0.35.5",
|
|
"tokenx": "^2.1.0",
|
|
"ts-pattern": "^5.9.0",
|
|
"unique-names-generator": "^4.7.1",
|
|
"uuid": "^14.0.2",
|
|
"zod": "^4.6.5"
|
|
},
|
|
"devDependencies": {
|
|
"@reactive-resume/config": "workspace:*",
|
|
"@types/node": "^26.6.3",
|
|
"@types/pg": "^8.23.1",
|
|
"@types/react": "^19.3.0",
|
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
"tsdown": "^0.23.0",
|
|
"tsx": "^4.23.15",
|
|
"typescript": "^7.0.2",
|
|
"vitest": "^5.0.2"
|
|
}
|
|
}
|