kukri_
kukri_
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
that happens when you use alpha for production theowat
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
man it took like hours
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
const { data: posts }: Posts = await getBlogInfo( '${process.env.NEXT_PUBLIC_API_URL}/api/getInfo' );
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
instead of using headers
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
just had to change the fetcher function to accept a url and call it in /app/page.tsx
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
fixed it @thatbarryguy
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
i get this error as it does not show nothing after deploy: Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
export default async function Home() { const headersList = headers(); const referer = headersList.get('referer'); const { data: posts }: Posts = await getBlogInfo(${referer}/api/getInfo); return ( <div className="flex flex-col items-start gap-3 max-w-2xl py-5 mx-auto px-6 text-start"> <div className="text-white font-semibold"> Hey there, I&apos;m K-Tsou. </div> <div className="flex flex-col gap-1"> {posts.map((post) => ( <PostCard key={post.id} post={post} /> ))} </div> </div> ); }
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
@thatbarryguy it actually worked
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
@gxp91 that's the only change and it works?
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
export default async function Home() { const headersList = headers(); const referer = headersList.get('referer'); const { data: posts }: Posts = await getBlogInfo(${}); console.log(referer); return ( <div className="flex flex-col items-start gap-3 max-w-2xl py-5 mx-auto px-6 text-start"> <div className="text-white font-semibold"> Hey there, I&apos;m K-Tsou. </div> <div className="flex flex-col gap-1"> {posts.map((post) => ( <PostCard key={post.id} post={post} /> ))} </div> </div> ); }
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
export const getBlogInfo = async (url: string) => { const res = await fetch(url, { cache: 'no-store', }); if (!res.ok) { console.error('Response not OK:', await res.text()); throw new Error(HTTP error! status: ${res.status}); } const json = await res.json(); console.log('Fetched data:', json); return json; };
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
@thatbarryguy i am trying your approach now..
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
did not really help, the subdomain just gives me back localhost:3000 rest is undefined
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
i am not sure either, first time writing some 'backend' code
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
nahh same stuff deranged @thatbarryguy
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
lets see
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
or no? theowat
57 replies
TTCTheo's Typesafe Cult
Created by kukri_ on 6/17/2023 in #questions
Cannot deploy to Vercel with Next13.4
i dont think if i change it, it will make a difference
57 replies