Skip to main content
Version: 2.x

Before going to production

Before going to production, you should ensure that everything has been customized to provide the best possible experience to your users. Some features are not critical enough to block your developments and you may have forgotten them during the project. This page contains a checklist to help you before the go-live!

To ensure that you are good to go, you can go through this checklist :

  • Style your Offline page
info

This page is accessible when you disable your network while navigating in your shop. If you have FRONT_COMMERCE_ENV !== "production" this page will also be available at /__front-commerce/offline. You can then edit the theme/pages/Offline component to make sure that this page suits your brand.

  • Style your Maintenance page
info

This page is accessible when your backend returns is in Maintenance mode (503). If you have FRONT_COMMERCE_ENV !== "production" this page will also be available at /__front-commerce/maintenance. You can then edit the theme/pages/Maintenance component to make sure that this page suits your brand.

  • Ensure your server can serve the application in HTTPS mode.
info

Front-Commerce is aimed at being exposed in HTTPS when in production mode (NODE_ENV === "production"). It will redirect users to an HTTPS url if they try to access a page using HTTP. Cookies are also set with secure mode. If you want to overcome this limitation (which we don’t recommend!), you may use the FRONT_COMMERCE_UNSAFE_INSECURE_MODE environment variable.

  • Ensure that the manifest.json is correct.
info

It provides informations about the application so that the web browser can detect whether it's a Progressive Web Application. See the customize manifest.json guide.

  • Ensure that the robots.txt has been overridden.
info

It instructs bots what they can access. By default, it forbids crawling to prevent unexpectedly exposing dev applications.