| 123456789101112131415161718192021222324 |
- import nookies from 'nookies';
- import ShippingContent from '../../components/shipping-content/ShippingContent';
-
- const ShippingPage = () => {
- return <ShippingContent></ShippingContent>;
- };
-
- export const getServerSideProps = async (ctx) => {
- const cookies = nookies.get(ctx);
-
- if (!cookies['shipping-session']) {
- return {
- redirect: {
- destination: '/cart',
- permanent: false,
- },
- };
- }
-
- return {
- props: {},
- };
- };
- export default ShippingPage;
|