SSG vs static html page

Hello guys I have a task and I am confused about difference between 1. and 3.
Implement API call as remote service call to https://ourapi.io/text.php?p=[numberFromConfig] That will be accessed on http://localhost:3000/api/ourpapi 1. Implement page as page static HTML with text from ourapi 2. Implement page as SSR with text from ourapi call 1. Implement page as SSG with text from ourapi call
4 Replies
Sturlen
Sturlen8mo ago
if you're unsure then you should probably ask them to clarify. though my guess would be that nr. 1 is html without any framework and nr. 3 is with a framework that generates html
Brutalni
Brutalni8mo ago
Hello, they asked me to use app router: - use NextJS 13 as Frontend Framework - use App Router for routing
Brutalni
Brutalni8mo ago
i just noticed that in docs ssg and ssr dont exist in app router, there is static and dynamic rendering https://nextjs.org/docs/app/building-your-application/rendering/server-components#static-rendering-default
Rendering: Server Components
Learn how you can use React Server Components to render parts of your application on the server.
Brutalni
Brutalni8mo ago
i know it is basically the same thing but their task is wrong on so many levels
Want results from more Discord servers?
Add your server
More Posts
(node:15568) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeI have the solution but I don't know where to make the modification because most of the time you havHow to achieve `text-overflow: ellipsis` functionality, but the ellipsis is followed by a linkI made the grave mistake of picking up a frontend ticket because it looked really benign, but now I'Can I use this with plain html on the client?That, can I use this with plain html on the client, without the need of react, solid, next, etc. comuploadthing's github example for express adapter is not working. Possible bug.I cloned the [repo](<https://github.com/pingdotgg/uploadthing/tree/main/examples/backend-adapters#mi` npx create t3-app@latest` returns `npm ERR! could not determine executable to run`Here are the logs: ```bash 0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\noError on TRPC while fetching data inside Auth.tsI'm using CredentialsProvider from next auth, and I need to fetch some data to check some data relatAI copilot/code intellgiencedoes anyone know of a code intelligence/AI copilot thing but with embeddings (i.e. takes your codebauseQuery enabled depending on login stateHi, I need to prevent useQuery from executing when the user isn't logged in. However, this requires trpc/app-router surfacing trpc errors in `error.tsx`?[i already posted this on trpc discord but not getting anything over there so figured i'd see if anyLibrary suggestion for indoor interactive maps (svg)Heya, I'm making an interactive map for an (outdoor) museum and I'm indecisive on what library to