Cookies
Cookies
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Cookies on 2/13/2024 in #questions
Understanding When To Use Server Actions
As a newer next.js dev it is a little bit overwhelming all the different ways to fetch data for your app. When should I be using server actions over calling an API route. I keep seeing random post and videos essentially saying you can move away from TRPC or API routes with server actions. I tried using a server action to pull data for a dashboard I was creating but got an error saying server actions cannot be utilized on initial render. Can someone help me understand the best use cases and advantages of one over the others.
10 replies
RRailway
Created by Cookies on 9/10/2023 in #✋|help
BUN 1.0 + Astro
Has anyone tried to deploy a Bun app yet? I am getting this error. ERROR: failed to solve: process "/bin/bash -ol pipefail -c bun run build" did not complete successfully: exit code: 127 I assume that is because Railway hasn't got to this yet with Bun being so new?
43 replies