Skip to content

Commit 71e99b6

Browse files
fix: add pino logging dependencies for Vercel deployment
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/386f4e43-c30c-4e81-bebf-d47cbf07430f Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent adf39b7 commit 71e99b6

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

apps/server/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
"@objectstack/service-automation": "workspace:*",
3636
"@objectstack/service-feed": "workspace:*",
3737
"@objectstack/spec": "workspace:*",
38-
"hono": "^4.12.12"
38+
"hono": "^4.12.12",
39+
"pino": "^10.3.1",
40+
"pino-pretty": "^13.1.3"
3941
},
4042
"devDependencies": {
4143
"@objectstack/cli": "workspace:*",

apps/server/scripts/bundle-api.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ const EXTERNAL = [
2727
'tedious',
2828
// macOS-only native file watcher
2929
'fsevents',
30+
// Logging libraries - use dynamic require, must be external
31+
'pino',
32+
'pino-pretty',
3033
];
3134

3235
await build({

apps/server/vercel.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"functions": {
1313
"api/**/*.js": {
1414
"memory": 1024,
15-
"maxDuration": 60
15+
"maxDuration": 60,
16+
"includeFiles": "node_modules/{pino,pino-pretty}/**"
1617
}
1718
},
1819
"headers": [

0 commit comments

Comments
 (0)