AB
redirect
у res
Size: a a a
AB
redirect
у res
V
redirect
у res
AB
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: {} };
};