Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

index.js 489B

123456789101112131415161718192021222324
  1. import nookies from 'nookies';
  2. import ShippingContent from '../../components/shipping-content/ShippingContent';
  3. const ShippingPage = () => {
  4. return <ShippingContent></ShippingContent>;
  5. };
  6. export const getServerSideProps = async (ctx) => {
  7. const cookies = nookies.get(ctx);
  8. if (!cookies['shipping-session']) {
  9. return {
  10. redirect: {
  11. destination: '/cart',
  12. permanent: false,
  13. },
  14. };
  15. }
  16. return {
  17. props: {},
  18. };
  19. };
  20. export default ShippingPage;