AB
redirect у resSize: a a a
AB
redirect у resV
redirect у resAB
export const getServerSideProps = async ({ res }) => {
res.redirect('/test')
return {
props: {}
}
}AB
V
V
V
K
e
K
K
K
K
e
K
AB
export const getServerSideProps = async ({ res }) => {
res.setHeader("location", "/");
res.statusCode = 301;
res.end();
return { props: {} };
};V
export const getServerSideProps = async ({ res }) => {
res.setHeader("location", "/");
res.statusCode = 301;
res.end();
return { props: {} };
};