build: ship pre-built API bundle; images copy output instead of installing
- API: `pnpm build` bundles dist/ into apps/api/.output (esbuild), with Linux musl native packages for sharp and argon2 kept alongside - docker/api.Dockerfile copies that output; no pnpm install on the server - add dist/migrate.js (prisma migrate deploy equivalent, same _prisma_migrations table and lock) so the Prisma CLI is not needed at runtime - pnpm-workspace: supportedArchitectures for linux/x64/musl - admin: apps/admin/.env.production sets VITE_SITE_URL for the production build - drop NPM_REGISTRY / SITE_URL build args from compose and .env.example - gitignore: anchor node_modules rules so pre-built node_modules are committed - README: describe the pre-built deploy flow Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 5.5
parent
ee8258556d
commit
10e453e4be
+66
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"name": "vue-bundle-renderer",
|
||||
"version": "2.4.0",
|
||||
"description": "Bundle Renderer for Vue 3.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "nuxt-contrib/vue-bundle-renderer"
|
||||
},
|
||||
"license": "MIT",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.mts",
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.cjs"
|
||||
},
|
||||
"./runtime": {
|
||||
"types": "./dist/runtime.d.mts",
|
||||
"import": "./dist/runtime.mjs",
|
||||
"require": "./dist/runtime.cjs"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.mts",
|
||||
"files": [
|
||||
"dist",
|
||||
"runtime.d.ts"
|
||||
],
|
||||
"dependencies": {
|
||||
"ufo": "^1.6.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@codspeed/vitest-plugin": "^5.7.1",
|
||||
"@nuxt/eslint-config": "^1.17.0",
|
||||
"@types/node": "^24.13.4",
|
||||
"@vitest/coverage-v8": "^4.1.11",
|
||||
"eslint": "^10.10.0",
|
||||
"pkg-pr-new": "^0.0.88",
|
||||
"std-env": "^4.2.0",
|
||||
"tsdown": "0.23.0",
|
||||
"typescript": "^6.0.3",
|
||||
"vite": "^8.3.0",
|
||||
"vitest": "4.1.11",
|
||||
"vue": "3.5.42"
|
||||
},
|
||||
"devEngines": {
|
||||
"runtime": {
|
||||
"name": "node",
|
||||
"version": "^24.0.0",
|
||||
"onFail": "download"
|
||||
},
|
||||
"packageManager": {
|
||||
"name": "pnpm",
|
||||
"version": "12.3.4",
|
||||
"onFail": "download"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsdown",
|
||||
"dev": "vitest",
|
||||
"lint": "eslint src",
|
||||
"test": "pnpm lint && pnpm vitest run --coverage && tsc --noEmit",
|
||||
"bench": "vitest bench"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user