root@code-server /saas# bun run build
$ turbo build
• Packages in scope: @
saasfly/api, @
saasfly/auth, @
saasfly/common, @
saasfly/db, @
saasfly/eslint-config, @
saasfly/nextjs, @
saasfly/prettier-config, @
saasfly/stripe, @
saasfly/tailwind-config, @
saasfly/typescript-config, @
saasfly/ui
• Running build in 11 packages
• Remote caching disabled
@
saasfly/nextjs:build: cache miss, executing 12d13155ec2e6d30
@
saasfly/nextjs:build: $ contentlayer build && bun with-env next build
@
saasfly/nextjs:build: Generated 9 documents in .contentlayer
@
saasfly/nextjs:build: TypeError: The "code" argument must be of type number. Received an instance of Object
@
saasfly/nextjs:build: at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
@
saasfly/nextjs:build: at Cli.runExit (/node_modules/clipanion/lib/advanced/Cli.js:232:26)
@
saasfly/nextjs:build: at run (file:///node_modules/@contentlayer/cli/src/index.ts:39:3)
@
saasfly/nextjs:build: at main (/node_modules/contentlayer/bin/cli.cjs:5:3) {
@
saasfly/nextjs:build: code: 'ERR_INVALID_ARG_TYPE'
@
saasfly/nextjs:build: }
@
saasfly/nextjs:build: $ dotenv -e ../../.env.local -- next build
@
saasfly/nextjs:build: ▲ Next.js 14.0.3
@
saasfly/nextjs:build:
@
saasfly/nextjs:build: ✓ Creating an optimized production build
@
saasfly/nextjs:build: ✓ Compiled successfully
@
saasfly/nextjs:build: Skipping validation of types
@
saasfly/nextjs:build: Skipping linting
Collecting page data ..sa [VercelPostgresError]: VercelPostgresError - 'invalid_connection_string': This connection string is meant to be used with a direct connection. Make sure to use a pooled connection string or try `createClient()` instead.
@
saasfly/nextjs:build: at su (/apps/nextjs/.next/server/chunks/406.js:18:5468)
@
saasfly/nextjs:build: at sg (/apps/nextjs/.next/server/chunks/406.js:18:7411)
@
saasfly/nextjs:build: at 15491 (/apps/nextjs/.next/server/app/api/webhooks/stripe/route.js:1:13596)
@
saasfly/nextjs:build: at t (/apps/nextjs/.next/server/webpack-runtime.js:1:128)
@
saasfly/nextjs:build: at 36577 (/apps/nextjs/.next/server/app/api/webhooks/stripe/route.js:1:14487)
@
saasfly/nextjs:build: at t (/apps/nextjs/.next/server/webpack-runtime.js:1:128)
@
saasfly/nextjs:build: at 75138 (/apps/nextjs/.next/server/app/api/webhooks/stripe/route.js:1:1028)
@
saasfly/nextjs:build: at t (/apps/nextjs/.next/server/webpack-runtime.js:1:128)
@
saasfly/nextjs:build: at r (/apps/nextjs/.next/server/app/api/webhooks/stripe/route.js:1:17593)
@
saasfly/nextjs:build: at /apps/nextjs/.next/server/app/api/webhooks/stripe/route.js:1:17628 {
@
saasfly/nextjs:build: code: 'invalid_connection_string'
@
saasfly/nextjs:build: }
> Build error occurred
Error: Failed to collect page data for /api/webhooks/stripe
@
saasfly/nextjs:build: at /node_modules/next/dist/build/utils.js:1217:15
@
saasfly/nextjs:build: at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
@
saasfly/nextjs:build: type: 'Error'
@
saasfly/nextjs:build: }
@
saasfly/nextjs:build: Collecting page data .error: script "with-env" exited with code 1
@
saasfly/nextjs:build: error: script "build" exited with code 1
@
saasfly/nextjs:build: ERROR: command finished with error: command (/apps/nextjs) /root/.bun/bin/bun run build exited (1)
@
saasfly/nextjs#build: command (/apps/nextjs) /root/.bun/bin/bun run build exited (1)
Tasks: 0 successful, 1 total
Cached: 0 cached, 1 total
Time: 5.326s
Failed: @
saasfly/nextjs#build
ERROR run failed: command exited (1)
error: script "build" exited with code 1