Closed BBruington closed 9 months ago
This PR was not deployed automatically as @BBruington does not have access to the Railway project.
In order to get automatic PR deploys, please add @BBruington to the project inside the project settings page.
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 | Jan 30, 2024 10:33pm |
Name | Status | Updated (UTC) |
---|---|---|
2bd73a2 | ❌ Failed | Tue, 30 Jan 2024 22:33:21 GMT |
Build failed:
> NX No explicit --base argument provided, but found environment variable NX_BASE so using its value as the affected base: e39df90722f6e7c2970c1a553a7a55fd0608102b
> NX No explicit --head argument provided, but found environment variable NX_HEAD so using its value as the affected head: 2bd73a246bca791ebde52fd5d7c601dbe5d0f7ca
The affected projects might have not been identified properly. The package(s) resend were not found. Please open an issue in GitHub including the package.json file.
> NX Running targets test, build for project chameleon and 3 tasks it depends on:
- chameleon
> nx run data-access/db:generate [remote cache]
Prisma schema loaded from prisma/schema.prisma
✔ Generated Prisma Client (v5.4.1) to ./../../node_modules/.pnpm/@prisma+client@5.4.1_prisma@5.4.1/node_modules/@prisma/client in 423ms
Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
̀̀̀
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
̀̀̀
or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
̀̀̀
import { PrismaClient } from '@prisma/client/edge'
const prisma = new PrismaClient()
̀̀̀
See other ways of importing Prisma Client: http://pris.ly/d/importing-client
> nx run chameleon:test:ci
No tests found, exiting with code 0
> 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: truè in your Contentlayer config.
Generated 15 documents in .contentlayer
> nx run chameleon:wunderctl-generate
{"level":"info","time":1706653850224,"pid":2034,"hostname":"fv-az774-243","component":"@wundergraph/sdk","msg":"Installing prisma..."}
{"level":"info","time":1706653850963,"pid":2034,"hostname":"fv-az774-243","component":"@wundergraph/sdk","msg":"Prisma installed"}
{"level":"error","time":1706653880982,"pid":2034,"hostname":"fv-az774-243","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"error: Environment variable not found: DATABASE_URL.\\n --> schema.prisma:7\\n | \\n 6 | provider = \\\"mysql\\\"\\n 7 | url = env(\\\"DATABASE_URL\\\")\\n | \\n\\nValidation Error Count: 1\",\"meta\":{\"full_error\":\"error: Environment variable not found: DATABASE_URL.\\n --> schema.prisma:7\\n | \\n 6 | provider = \\\"mysql\\\"\\n 7 | url = env(\\\"DATABASE_URL\\\")\\n | \\n\\nValidation Error Count: 1\"},\"error_code\":\"P1012\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1706653850978,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az774-243\",\"pid\":2093,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1706653850982,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az774-243\",\"pid\":2093,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1706653850983,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az774-243\",\"pid\":2093,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1706653880982,"pid":2034,"hostname":"fv-az774-243","component":"@wundergraph/sdk","msg":"retrying database introspection 1/5"}
{"level":"error","time":1706653910999,"pid":2034,"hostname":"fv-az774-243","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"error: Environment variable not found: DATABASE_URL.\\n --> schema.prisma:7\\n | \\n 6 | provider = \\\"mysql\\\"\\n 7 | url = env(\\\"DATABASE_URL\\\")\\n | \\n\\nValidation Error Count: 1\",\"meta\":{\"full_error\":\"error: Environment variable not found: DATABASE_URL.\\n --> schema.prisma:7\\n | \\n 6 | provider = \\\"mysql\\\"\\n 7 | url = env(\\\"DATABASE_URL\\\")\\n | \\n\\nValidation Error Count: 1\"},\"error_code\":\"P1012\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1706653880996,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az774-243\",\"pid\":2117,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1706653880999,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az774-243\",\"pid\":2117,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1706653881001,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az774-243\",\"pid\":2117,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1706653910999,"pid":2034,"hostname":"fv-az774-243","component":"@wundergraph/sdk","msg":"retrying database introspection 2/5"}
{"level":"error","time":1706653941015,"pid":2034,"hostname":"fv-az774-243","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"error: Environment variable not found: DATABASE_URL.\\n --> schema.prisma:7\\n | \\n 6 | provider = \\\"mysql\\\"\\n 7 | url = env(\\\"DATABASE_URL\\\")\\n | \\n\\nValidation Error Count: 1\",\"meta\":{\"full_error\":\"error: Environment variable not found: DATABASE_URL.\\n --> schema.prisma:7\\n | \\n 6 | provider = \\\"mysql\\\"\\n 7 | url = env(\\\"DATABASE_URL\\\")\\n | \\n\\nValidation Error Count: 1\"},\"error_code\":\"P1012\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1706653911012,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az774-243\",\"pid\":2135,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1706653911015,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az774-243\",\"pid\":2135,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1706653911016,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az774-243\",\"pid\":2135,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1706653941015,"pid":2034,"hostname":"fv-az774-243","component":"@wundergraph/sdk","msg":"retrying database introspection 3/5"}
{"level":"error","time":1706653971030,"pid":2034,"hostname":"fv-az774-243","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"error: Environment variable not found: DATABASE_URL.\\n --> schema.prisma:7\\n | \\n 6 | provider = \\\"mysql\\\"\\n 7 | url = env(\\\"DATABASE_URL\\\")\\n | \\n\\nValidation Error Count: 1\",\"meta\":{\"full_error\":\"error: Environment variable not found: DATABASE_URL.\\n --> schema.prisma:7\\n | \\n 6 | provider = \\\"mysql\\\"\\n 7 | url = env(\\\"DATABASE_URL\\\")\\n | \\n\\nValidation Error Count: 1\"},\"error_code\":\"P1012\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1706653941027,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az774-243\",\"pid\":2164,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1706653941031,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az774-243\",\"pid\":2164,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1706653941031,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az774-243\",\"pid\":2164,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1706653971030,"pid":2034,"hostname":"fv-az774-243","component":"@wundergraph/sdk","msg":"retrying database introspection 4/5"}
{"level":"error","time":1706654001048,"pid":2034,"hostname":"fv-az774-243","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"error: Environment variable not found: DATABASE_URL.\\n --> schema.prisma:7\\n | \\n 6 | provider = \\\"mysql\\\"\\n 7 | url = env(\\\"DATABASE_URL\\\")\\n | \\n\\nValidation Error Count: 1\",\"meta\":{\"full_error\":\"error: Environment variable not found: DATABASE_URL.\\n --> schema.prisma:7\\n | \\n 6 | provider = \\\"mysql\\\"\\n 7 | url = env(\\\"DATABASE_URL\\\")\\n | \\n\\nValidation Error Count: 1\"},\"error_code\":\"P1012\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1706653971046,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az774-243\",\"pid\":2179,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1706653971049,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az774-243\",\"pid\":2179,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1706653971049,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az774-243\",\"pid\":2179,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1706654001048,"pid":2034,"hostname":"fv-az774-243","component":"@wundergraph/sdk","msg":"retrying database introspection 5/5"}
{"level":"fatal","time":1706654001049,"pid":2034,"hostname":"fv-az774-243","component":"@wundergraph/sdk","msg":"introspection of prisma database failed after 5 attempts, make sure it's accessible at: ../../../data-access/db/prisma/schema.prisma\n Did you forget to add tables to the database? Make sure, you've run your initial migration.\n The introspection fails if there are no tables.\n Are you using a custom database schema? Make sure it's selected in the database URL.\n Please restart \"wunderctl up\" once the DB is running.\n "}
Error: configuration could not be generated. Process exit with code 1
configuration could not be generated. Process exit with code 1
Warning: run-commands command "wunderctl generate" exited with non-zero status code
> NX Running targets test, build for project chameleon and 3 tasks it depends on failed
Tasks not run because their dependencies failed or --nx-bail=true:
- chameleon:build:production
Failed tasks:
- chameleon:wunderctl-generate
View structured, searchable error logs at https://cloud.nx.app/runs/wm0Gn3cbVI
BUILD_FAILED
closes #57
It seems that resend sends the emails now.
here is a very basic example of how to use it to send an email on the front end:
here's what the email looks like but we can change the template to make it look nicer if you guys want: