R
Railway8mo 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
Percy8mo ago
Project ID: 3f6705bc-8b10-4b26-9084-0ce96be52ad7,3f6705bc-8b10-4b26-9084-0ce96be52ad7
ZETREY
ZETREY8mo ago
cf393a3b-e3ca-4a8a-89e1-dc020f26f5e7
Brody
Brody8mo ago
please provide your full build logs with this https://bookmarklets.up.railway.app/log-downloader/
ZETREY
ZETREY8mo 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
Brody8mo ago
build logs please
ZETREY
ZETREY8mo ago
there is it
Brody
Brody8mo ago
please provide your full build logs with this https://bookmarklets.up.railway.app/log-downloader/
Brody
Brody8mo ago
follow the 3 steps listed on that site
ZETREY
ZETREY8mo ago
i dit it but it juste open the link
Brody
Brody8mo ago
follow the 3 steps please
ZETREY
ZETREY8mo ago
Brody
Brody8mo 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
ZETREY8mo ago
thanks i fixe it but how to moov from dev mode to prod
Brody
Brody8mo ago
looks like you need to properly configure clerk, give their documentation a read
ZETREY
ZETREY8mo ago
why the start commande is next start and dont use de build one
Brody
Brody8mo ago
the build command is ran during build
ZETREY
ZETREY8mo ago
how to serve the build file in prod
Brody
Brody8mo ago
that would be done automatically by next start your issue is with clerk
ZETREY
ZETREY8mo ago
To fixe ckerk issue i need to have domain for production
Brody
Brody8mo ago
sounds plausible do you own a domain?
ZETREY
ZETREY8mo ago
No
Brody
Brody8mo ago
then you know what you need to do next
Want results from more Discord servers?
Add your server