Deploying a Next.js Store on BigCommerce

Deliver a sub-second Next.js website on BigCommerce with Layer0

Next.js is an open-source React-based isomorphic framework for server-side rendered applications. To ensure fast page loads, Next.js automatically splits code and dynamically generates the HTML every time a new request comes in with the use of a server. Key benefits of Next.js include: built-in server-side rendering, automatic code splitting, page caching and route prefetching, file-system routing, and CSS-in-JavaScript styling. 

BigCommerce is a popular eCommerce platform for small or enterprise level businesses. The platform offers a wide range of free and paid customizable templates for their traditional server-rendered frontend. Key features include 12 free templates, a drag-and-drop page builder, a built-in content management system(CMS) with SEO features and image optimization tools along with the ability to tweak CSS and HTML.

BigCommerce has several different APIs that let you manage store data and make client-side queries for product information including REST, Storefront, and GraphQL APIs. In terms of performance, the platform has a few built-in features that help businesses deliver a fast and optimized shopping experience. Akamai Image Manager is included with Stencil themes, which will automatically optimize each uploaded image for the best combination of size, quality, and file format suited for each image and device, offloading the artistic transformation of assets to the cloud. There are a few key built-in SEO features, such as the ability to create short URLs and AMP support. Additionally, BigCommerce supports SSR via the Next.js Commerce Integration and provides the ability to build a headless frontend based on APIs.

Layer0 lets you deliver a high performing Next.js storefront on BigCommerce in hours. You can get started in minutes on Layer0 and see median speeds of 320ms, as measured by Largest Contentful Paint (LCP). But Layer0 does more than speed up your site, it is a Jamstack platform for eCommerce. The platform was built specifically for large-scale, database-driven websites, such as eCommerce and Travel, and provides the following benefits: 

  • Jamstack for eCommerce via both pre-rendering and just-in-time rendering
  • Zero latency networking via prefetching of data from your product catalog APIs
  • An edge that can be configured natively in your Next.js app (CDN-as-JavaScript)
  • Edge rules that can run locally, in pre-production and production environments  
  • Automated, full-stack preview URLs from GitHub, GitLab, or Bitbucket with every new branch and push
  • Performant split tests at the edge and A/B tests that do not slow down the site, canary deploys, and personalization
  • Serverless JavaScript that is much easier and more reliable than AWS Lambda

With Layer0, your Next.js BigCommerce website will run in sub-second speeds and your developers will be empowered to control edge caching and reduce rework using the various developer productivity tools that come with the platform.

Browse around Shaper Image, a Next.js website delivering instant page loads on Layer0. "Everyone here has commented on how blazing fast our site is" -Mihaela Mazzenga, CTO at Sharper Image

Layer0 is also a main contributor to React Storefront (RSF), an open source eCommerce frontend framework built on Next.js, which powers over billion dollars in eCommerce revenue a year. Try it out if you are in the process of building a modern frontend for an eCommerce site. Or if you're already using Next.js, use the this guide to deploy your Next.js application on Layer0 and get sub-second loads in as little as 1 hour of work. 

Deploy in minutes

Moovweb XDN works with all frontends
Deploy freeTakes 2 minutes