R
Railway9mo ago
ZETREY

need help to deploy nextjs 13 + prisma project

hello i get this error when deploy my fullstack nextjs project on railway here is my build log # build phase 23 | COPY . /app/. 24 | >>> RUN --mount=type=cache,id=s/3f6705bc-8b10-4b26-9084-0ce96be52ad7-next/cache,target=/app/.next/cache --mount=type=cache,id=s/3f6705bc-8b10-4b26-9084-0ce96be52ad7-node_modules/cache,target=/app/node_modules/.cache npm run build 25 | 26 | ------------------- ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1 Error: Docker build failed
23 Replies
Percy
Percy9mo ago
Project ID: 3f6705bc-8b10-4b26-9084-0ce96be52ad7,3f6705bc-8b10-4b26-9084-0ce96be52ad7
ZETREY
ZETREYOP9mo ago
cf393a3b-e3ca-4a8a-89e1-dc020f26f5e7
Brody
Brody9mo ago
please provide your full build logs with this https://bookmarklets.up.railway.app/log-downloader/
ZETREY
ZETREYOP9mo ago
Railway
Log Explorer
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Brody
Brody9mo ago
build logs please
ZETREY
ZETREYOP9mo ago
there is it
Brody
Brody9mo ago
please provide your full build logs with this https://bookmarklets.up.railway.app/log-downloader/
Brody
Brody9mo ago
follow the 3 steps listed on that site
ZETREY
ZETREYOP9mo ago
i dit it but it juste open the link
Brody
Brody9mo ago
follow the 3 steps please
ZETREY
ZETREYOP9mo ago
Brody
Brody9mo ago
please see your error message -
Linting and checking validity of types...

./app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/image-form.tsx
Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities
Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities

./app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components/chapter-access-form.tsx
Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities
Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities

./app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components/chapter-video-form.tsx
Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities

./app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/page.tsx
Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities

Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
Linting and checking validity of types...

./app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/image-form.tsx
Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities
Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities

./app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components/chapter-access-form.tsx
Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities
Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities

./app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components/chapter-video-form.tsx
Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities

./app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/page.tsx
Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities

Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
ZETREY
ZETREYOP9mo ago
thanks i fixe it but how to moov from dev mode to prod
Brody
Brody9mo ago
looks like you need to properly configure clerk, give their documentation a read
ZETREY
ZETREYOP9mo ago
why the start commande is next start and dont use de build one
Brody
Brody9mo ago
the build command is ran during build
ZETREY
ZETREYOP9mo ago
how to serve the build file in prod
Brody
Brody9mo ago
that would be done automatically by next start your issue is with clerk
ZETREY
ZETREYOP9mo ago
To fixe ckerk issue i need to have domain for production
Brody
Brody9mo ago
sounds plausible do you own a domain?
ZETREY
ZETREYOP9mo ago
No
Brody
Brody9mo ago
then you know what you need to do next
Want results from more Discord servers?
Add your server