NightFuries
Explore posts from serversChoose a local file if data fetching failed
I have an api that sometimes fails to deliver a successful response. In that case, I want to default to using a local json file instead.
I know that useAsyncData should be "side-effects free" but idk how else to do this operation.
17 replies
Can I have SSG and SSR in the same project??
I have 2 projects to work on in a monorepo: the landing page & a website with auth and other stuff. The main website is a simple SSR application but I wish to statically generate the landing page. The problem is that they both have the same
public/
folder (for fonts) and server/
folder because of the text on the landing depends on API call to my server.11 replies