Closed a-jaxell closed 9 months ago
Since API calls from the client will not reach the API I should implement server actions on the API methods on the frontend.
Server actions in next.js will allow the Next.js app to call endpoints on its local network when its deployed.
The reason for this is because the containerized version is hosted in the same docker compose.
data.ts
Since API calls from the client will not reach the API I should implement server actions on the API methods on the frontend.
Server actions in next.js will allow the Next.js app to call endpoints on its local network when its deployed.
The reason for this is because the containerized version is hosted in the same docker compose.
Tasks
data.ts
to run as server function against API