kukri_
kukri_
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
I cannot deploy my project to Vercel, with app directory. I have set all env variables right, such as in my local .env i have the local host and in Vercel i have my actual domain to NEXT_PUBLIC_API_URL. Here's my project it's a small one. Im also not sure if i have the correct folder structure. In my localhost everything is working fine but something is wrong either with api routes or tha page.tsx where the app is mounting as i am trying to SSR there. https://github.com/KukR1/blog-markdown-ktsoumas The error from Vercel: Error: HTTP error! status: 404 at GetData (/vercel/path0/.next/server/app/page.js:366:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Home (/vercel/path0/.next/server/app/page.js:373:30) Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error Error: HTTP error! status: 404 at GetData (/vercel/path0/.next/server/app/page.js:366:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Home (/vercel/path0/.next/server/app/page.js:373:30)
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 10/12/2022 in #questions
getServerSideProps NextJS
Is getServerSideProps used only to fetch data? I mean is it worth calling it e.g to fetch images from public folder?
4 replies