0

I am developing a website with nextjs, and I am uploading it to vercel. But, when I try to go to the login page it returns 504. Testing I discovered that it is because of using "getServerSideProps".

If I take it off it works fine. On this page I used it only as a test, so it doesn't have any external API calls that might be failing, it's just:

export const getServerSideProps: GetServerSideProps = async (ctx) => {
    return {
        props: {
            isDashboard: false,
            ...(await serverSideTranslations(ctx?.locale || "en")),
        },
    };
};

Also try removing the "serverSideTranslations" function.
But it still doesn't work :/

On localhost it works perfectly.

I was investigating and found that other people had the same problem, but it was a problem with external API request.

Does anyone have any idea what it could be?
Thank you.

0 Answers0