Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using api routes in getServerSideProps #2

Open
coderx0 opened this issue Jul 8, 2022 · 1 comment
Open

Using api routes in getServerSideProps #2

coderx0 opened this issue Jul 8, 2022 · 1 comment

Comments

@coderx0
Copy link

coderx0 commented Jul 8, 2022

In many pages ( Ex: index.tsx ) api routes are being used inside getServerSideProps which is not recommended as it will cause an extra request ( because api routes and getServerSideProps both run on server ) reducing performance.

@vaniadimova
Copy link

I am getting an error on the upload file, 404 and still working on it but it is strange for the localhost not to be able to fetch the page ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants