Ionia-Devs / chameleon

https://chameleon-sandy.vercel.app
1 stars 1 forks source link

prisma-edge-authjs-v5 #91

Closed Balance8 closed 8 months ago

Balance8 commented 8 months ago

Prisma new edge compatibility + authjs v5

this will break wundergraph indefinitely however

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
chameleon βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Mar 17, 2024 2:01am
railway-app[bot] commented 8 months ago

This PR is being deployed to Railway πŸš…

chameleon: ◻️ REMOVED

Balance8 commented 8 months ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Balance8 and the rest of your teammates on Graphite Graphite

github-actions[bot] commented 8 months ago

🌟 Important Action Required! 🌟

FINAL STEPS:

To finalize the changes to the schema and successfully merge them to PlanetScale, your action is needed. Please review the steps below:

Step Action
1 Review the proposed schema changes for accuracy.
2 Test the changes locally to ensure they work as expected.
3 Comment /ps-merge on this PR to trigger the merge process.
4 Await the automated merge process to apply your changes.

This will trigger the merge process and apply your changes to PlanetScale. πŸš€

✨✨✨✨✨✨✨✨✨✨

  /ps-merge

✨✨✨✨✨✨✨✨✨✨

Balance8 commented 8 months ago

/ps-create

github-actions[bot] commented 8 months ago

The latest updates on your build

Name Status Updated (UTC)
72a4887 ❌ Failed Sun, 17 Mar 2024 02:00:12 GMT

Build failed:


 >  NX   No explicit --base argument provided, but found environment variable NX_BASE so using its value as the affected base: 87207f07f831771e34406d2b688ed8d4b3545d09

 >  NX   No explicit --head argument provided, but found environment variable NX_HEAD so using its value as the affected head: 72a48877601595893ec019d7cfa6d9dec728d270

The affected projects might have not been identified properly. The package(s) @prisma/client, prisma, @planetscale/database, @prisma/adapter-planetscale were not found. Please open an issue in GitHub including the package.json file.

 >  NX   Running target build for project chameleon and 2 tasks it depends on:

    - chameleon

> nx run db:generate

Prisma schema loaded from prisma/schema.prisma

βœ” Generated Prisma Client (v5.11.0) to ./../../node_modules/.pnpm/@prisma+client@5.11.0_prisma@5.11.0/node_modules/@prisma/client in 206ms

βœ” Generated Zod Prisma Types to ./prisma/generated/zod in 425ms

Start using Prisma Client
Μ€Μ€Μ€
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
Μ€Μ€Μ€

More information: https://pris.ly/d/client

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Deploying your app to serverless or edge functions?        β”‚
β”‚  Try Prisma Accelerate for connection pooling and caching.  β”‚
β”‚  https://pris.ly/cli/accelerate                             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

> nx run chameleon:contentlayer

Contentlayer (Warning): Importing from Μ€contentlayer/generatedΜ€ might not work.
Config option Μ€compilerOptions.baseUrlΜ€ not found in "tsconfig.json".

For more information see https://www.contentlayer.dev/docs/getting-started
To disable this warning you can set Μ€disableImportAliasWarning: trueΜ€ in your Contentlayer config.

Generated 15 documents in .contentlayer

> nx run chameleon:build:production

⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry

   β–² Next.js 14.1.0

   Creating an optimized production build ...
 ⚠ For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'npm i sharp', and Next.js will use it automatically for Image Optimization.
Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
<w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (359kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
 ⚠ Compiled with warnings

../../node_modules/.pnpm/@prisma+debug@5.11.0/node_modules/@prisma/debug/dist/index.js
A Node.js API is used (process.stdout at line: 71) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime

Import trace for requested module:
../../node_modules/.pnpm/@prisma+debug@5.11.0/node_modules/@prisma/debug/dist/index.js
../../node_modules/.pnpm/@prisma+driver-adapter-utils@5.11.0/node_modules/@prisma/driver-adapter-utils/dist/index.mjs
../../node_modules/.pnpm/@prisma+adapter-planetscale@5.11.0_@planetscale+database@1.16.0/node_modules/@prisma/adapter-planetscale/dist/index.mjs
../../data-access/db/src/index.ts
./lib/auth.ts

../../node_modules/.pnpm/@prisma+debug@5.11.0/node_modules/@prisma/debug/dist/index.js
A Node.js API is used (process.stdout at line: 71) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime

Import trace for requested module:
../../node_modules/.pnpm/@prisma+debug@5.11.0/node_modules/@prisma/debug/dist/index.js
../../node_modules/.pnpm/@prisma+driver-adapter-utils@5.11.0/node_modules/@prisma/driver-adapter-utils/dist/index.mjs
../../node_modules/.pnpm/@prisma+adapter-planetscale@5.11.0_@planetscale+database@1.16.0/node_modules/@prisma/adapter-planetscale/dist/index.mjs
../../data-access/db/src/index.ts
./lib/auth.ts

../../node_modules/.pnpm/@prisma+debug@5.11.0/node_modules/@prisma/debug/dist/index.js
A Node.js API is used (process.stderr at line: 155) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime

Import trace for requested module:
../../node_modules/.pnpm/@prisma+debug@5.11.0/node_modules/@prisma/debug/dist/index.js
../../node_modules/.pnpm/@prisma+driver-adapter-utils@5.11.0/node_modules/@prisma/driver-adapter-utils/dist/index.mjs
../../node_modules/.pnpm/@prisma+adapter-planetscale@5.11.0_@planetscale+database@1.16.0/node_modules/@prisma/adapter-planetscale/dist/index.mjs
../../data-access/db/src/index.ts
./lib/auth.ts

../../node_modules/.pnpm/@prisma+debug@5.11.0/node_modules/@prisma/debug/dist/index.js
A Node.js API is used (process.stderr at line: 155) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime

Import trace for requested module:
../../node_modules/.pnpm/@prisma+debug@5.11.0/node_modules/@prisma/debug/dist/index.js
../../node_modules/.pnpm/@prisma+driver-adapter-utils@5.11.0/node_modules/@prisma/driver-adapter-utils/dist/index.mjs
../../node_modules/.pnpm/@prisma+adapter-planetscale@5.11.0_@planetscale+database@1.16.0/node_modules/@prisma/adapter-planetscale/dist/index.mjs
../../data-access/db/src/index.ts
./lib/auth.ts

../../node_modules/.pnpm/@prisma+debug@5.11.0/node_modules/@prisma/debug/dist/index.js
A Node.js API is used (process.stderr at line: 158) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime

Import trace for requested module:
../../node_modules/.pnpm/@prisma+debug@5.11.0/node_modules/@prisma/debug/dist/index.js
../../node_modules/.pnpm/@prisma+driver-adapter-utils@5.11.0/node_modules/@prisma/driver-adapter-utils/dist/index.mjs
../../node_modules/.pnpm/@prisma+adapter-planetscale@5.11.0_@planetscale+database@1.16.0/node_modules/@prisma/adapter-planetscale/dist/index.mjs
../../data-access/db/src/index.ts
./lib/auth.ts

   Skipping validation of types
   Skipping linting
   Collecting page data ...
 ⚠ Using edge runtime on a page currently disables static generation for that page
❌ Invalid environment variables: {
  GITHUB_CLIENT_ID: [ 'Required' ],
  GITHUB_CLIENT_SECRET: [ 'Required' ],
  AUTH_SECRET: [ 'Required' ],
  OPENAI_API_KEY: [ 'Required' ],
  POSTMARK_ACTIVATION_TEMPLATE: [ 'Required' ],
  POSTMARK_API_TOKEN: [ 'Required' ],
  POSTMARK_SIGN_IN_TEMPLATE: [ 'Required' ],
  RESEND_API_KEY: [ 'Required' ],
  SMTP_FROM: [ 'Required' ],
  STRIPE_API_KEY: [ 'Required' ],
  STRIPE_PRO_MONTHLY_PLAN_ID: [ 'Required' ],
  STRIPE_WEBHOOK_SECRET: [ 'Required' ],
  NEXT_PUBLIC_VERCEL_URL: [ 'Required' ]
}
Error: Invalid environment variables
    at p (/home/runner/work/chameleon/chameleon/dist/apps/chameleon/.next/server/chunks/6406.js:1:2879)
    at /home/runner/work/chameleon/chameleon/dist/apps/chameleon/.next/server/chunks/6406.js:1:3055
    at s (/home/runner/work/chameleon/chameleon/dist/apps/chameleon/.next/server/chunks/6406.js:1:3242)
    at 67598 (/home/runner/work/chameleon/chameleon/dist/apps/chameleon/.next/server/app/api/auth/[...nextauth]/route.js:1:3525)
    at t (/home/runner/work/chameleon/chameleon/dist/apps/chameleon/.next/server/webpack-runtime.js:1:127)
    at 90737 (/home/runner/work/chameleon/chameleon/dist/apps/chameleon/.next/server/app/api/auth/[...nextauth]/route.js:1:1911)
    at t (/home/runner/work/chameleon/chameleon/dist/apps/chameleon/.next/server/webpack-runtime.js:1:127)
    at 34611 (/home/runner/work/chameleon/chameleon/dist/apps/chameleon/.next/server/app/api/auth/[...nextauth]/route.js:1:1219)
    at t (/home/runner/work/chameleon/chameleon/dist/apps/chameleon/.next/server/webpack-runtime.js:1:127)
    at t (/home/runner/work/chameleon/chameleon/dist/apps/chameleon/.next/server/app/api/auth/[...nextauth]/route.js:1:5070)

> Build error occurred
Error: Failed to collect page data for /api/auth/[...nextauth]
    at /home/runner/work/chameleon/chameleon/node_modules/.pnpm/next@14.1.0_@babel+core@7.24.0_@opentelemetry+api@1.6.0_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/build/utils.js:1258:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  type: 'Error'
}
Error occurred while trying to run the build command
1

 >  NX   Running target build for project chameleon and 2 tasks it depends on failed

   Failed tasks:

   - chameleon:build:production

View structured, searchable error logs at https://cloud.nx.app/runs/oYtPeswcoK

BUILD_FAILED
github-actions[bot] commented 8 months ago

πŸ‘‹ Balance8, creating DB branch 03-16-prisma-edge-authjs-v5 for Git branch 03-16-prisma-edge-authjs-v5 now ...

You can watch the progress and authorize access here.

github-actions[bot] commented 8 months ago

Creating PS branch and DR failed for branch 03-16-prisma-edge-authjs-v5 :cry:. View error logs.

Balance8 commented 8 months ago

/ps-delete

github-actions[bot] commented 8 months ago

Script .pscale/env/ps-env-03-16-prisma-edge-authjs-v5.sh does not exists, could not identify associated branch.