Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Feature/saleor 1564 Add next.js to the Storefront #960

Merged
merged 19 commits into from
Dec 5, 2020

Conversation

piotrgrundas
Copy link
Contributor

@piotrgrundas piotrgrundas commented Dec 3, 2020

I want to merge this change because...

Add next.js to the Storefront

Screenshots

Pull Request Checklist

  1. All visible strings are translated with proper context.
  2. All data-formatting is locale-aware (dates, numbers, and so on).
  3. The changes are tested.
  4. The code is documented (docstrings, project documentation).
  5. Changes are mentioned in the changelog.

Test Environment Config

API_URI=https://master.staging.saleor.rocks/graphql/

@patrys
Copy link
Member

patrys commented Dec 3, 2020

Task linked: SALEOR-1564 Add next.js to the Storefront

@piotrgrundas piotrgrundas force-pushed the feature/SALEOR-1564-add-next-js branch from fe71869 to 62629fc Compare December 3, 2020 22:14
},
"exclude": ["node_modules"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next modifies tsconfig on the first run 🤷‍♂️

}
});
return history;
})() as History;
Copy link
Contributor Author

@piotrgrundas piotrgrundas Dec 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporary hack so checkout could work with react router.

if (target) {
setPortalTarget(target);
}
}, [target]);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed coz of SSR build.

* /\?(.+&)?no-cache=1$/,
* ],
* Or NetworkOnly might have the same effect.
*/
Copy link
Contributor Author

@piotrgrundas piotrgrundas Dec 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll get back to this after some SSR work to validate it, so I would like to leave it for now.

@lgtm-com
Copy link

lgtm-com bot commented Dec 3, 2020

This pull request introduces 1 alert when merging 62629fc into 1abbf68 - view on LGTM.com

new alerts:

  • 1 for Useless conditional

@lgtm-com
Copy link

lgtm-com bot commented Dec 4, 2020

This pull request introduces 1 alert when merging bb5eeab into 1abbf68 - view on LGTM.com

new alerts:

  • 1 for Useless conditional

@piotrgrundas piotrgrundas force-pushed the feature/SALEOR-1564-add-next-js branch from bb5eeab to 7fb1a22 Compare December 4, 2020 08:21
@piotrgrundas piotrgrundas force-pushed the feature/SALEOR-1564-add-next-js branch from 7fb1a22 to e5b6c22 Compare December 4, 2020 08:28
@lgtm-com
Copy link

lgtm-com bot commented Dec 4, 2020

This pull request introduces 1 alert when merging e5b6c22 into 1abbf68 - view on LGTM.com

new alerts:

  • 1 for Useless conditional

package.json Outdated Show resolved Hide resolved
.env.production Outdated Show resolved Hide resolved
config/next/config.base.js Outdated Show resolved Hide resolved
@krzysztofwolski
Copy link
Member

Minor things to change, rest is looking good 👍

@lgtm-com
Copy link

lgtm-com bot commented Dec 4, 2020

This pull request introduces 1 alert when merging 218f99d into 1abbf68 - view on LGTM.com

new alerts:

  • 1 for Useless conditional

@lgtm-com
Copy link

lgtm-com bot commented Dec 4, 2020

This pull request introduces 1 alert when merging 062a7dc into 1abbf68 - view on LGTM.com

new alerts:

  • 1 for Useless conditional

@piotrgrundas piotrgrundas force-pushed the feature/SALEOR-1564-add-next-js branch from 062a7dc to 2032ff1 Compare December 4, 2020 20:50
@lgtm-com
Copy link

lgtm-com bot commented Dec 4, 2020

This pull request introduces 1 alert when merging 2032ff1 into 1abbf68 - view on LGTM.com

new alerts:

  • 1 for Useless conditional

@piotrgrundas piotrgrundas merged commit a975035 into feature/nextjs Dec 5, 2020
@piotrgrundas piotrgrundas deleted the feature/SALEOR-1564-add-next-js branch December 5, 2020 16:05
piotrgrundas added a commit that referenced this pull request Jan 13, 2021
* Feature/saleor 1564 Add next.js to the Storefront (#960)

* Initial structure

* Adjust product page

* Adjust login page

* Adjust product, category, collection, cart pages

* Adjust pages, account confirm, reset password views

* Adjust search, account views. Checkout first adjustments

* Adjust pages, account confirm, reset password views

* Fix problems after rebase

* Fix problems after rebase, add env files

* Fix channels, checkout. Improve envs setup

* Cleanup settings, split them into separate configurations, add sw config

* Cleanup paths hell 🔥

* Fix storybook

* Fix tests, minor improvements

* Prod config styles fix

* Review corrections

* Adjust tests/storybook after account paths matching improvements

* Switch checkout to nextjs routing (#967)

* Switch checkout to nextjs routing

* Improvements

* Add prod export sw config

* Refactor service worker

* Fix sw for static pages & production serwer

* Review corrections

* Improvements

* Review corrections

* Review corrections

* Update src/@next/pages/CheckoutPage/utils.tsx

Co-authored-by: Jakub Majorek <[email protected]>

* Remove unused imports

Co-authored-by: Jakub Majorek <[email protected]>

* Adjust build commands, fix tsc errors

* Improvements

* Add dynamic routes+export workaround

* Update .github/workflows/test-env-deploy.yml

Co-authored-by: Krzysztof Wolski <[email protected]>

Co-authored-by: Jakub Majorek <[email protected]>
Co-authored-by: Krzysztof Wolski <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants