Deploying a Nuxt.js Store on SAP Commerce Cloud (Hybris)

Deliver a sub-second Nuxt.js website on SAP Commerce Cloud (Hybris) with Layer0

Nuxt.js is an open-source, serverless framework based on multiple frameworks including Vue.js, Node.js, Webpack and Babel.js. Created to build fast, complex isomorphic applications quickly. The framework handles the complex pre-coding configuration and UI rendering for your app, so that developers can focus on writing code. Additional benefits of Nuxt.js include automatic code-splitting, page caching and prefetching, bundling, and static site generation.

Nuxt.js is fully capable of delivering the speedy websites that consumers demand. We performed a study to discover which modern frontend framework delivers the fastest websites and found Nuxt.js leads the pack, in front of React, Angular, Vue.js and Next.js. Layer0 is proud to be a Nuxt.js sponsor to help promote modern, open-source frameworks working to facilitate a faster Web.

SAP Commerce Cloud, formerly known as Hybris, is a highly customizable eCommerce platform with a robust content management system. The platform offers two proprietary frontends: Spartacus and Hybris B2C Accelerator theme. Hybris B2C Accelerator theme is a Responsive frontend solution, and Spartacus is a headless frontend solution. This headless solution is fairly new, so there are few proof points in production. It's also important to note that Spartacus is geared specifically for the SAP Commerce Cloud platform, so you remain locked into the platform's ecosystem. Furthermore it does not support Server-Side Rendering (SSR)out of the box. Unlike Hybris, which is a Java based application that typically runs on a Java server like Tomcat, Spartacus SSR is Angular JavaScript that runs on Node.js. As a result, supporting true SSR with Spartacus requires running and maintaining a Node.js servers.

SAP Commerce Cloud offers a REST based API called Omni Commerce Connect (OCC) that can be used to implement shopping, account management, checkout, and  administration flows in a  application. Many enterprise sites, however, have significantly customized their controller logic and those customizations may need to be re-created in client side code or in the separate OCC controllers. This can add additional effort when migrating to an OCC based solution like Spartacus. Synthetic APIs can reduce this workload, which can be found on Layer0, along with AMP and SSR technology to optimize website speed for websites running on the platform.

Layer0 lets you deliver your Nuxt.js storefront on SAP Commerce Cloud in sub-second speeds. The average website on Layer0see median speeds of 320ms loads, as measured by Largest Contentful Paint (LCP). But Layer0 is much more than merely a website accelerator. It is a Jamstack platform for eCommerce. Layer0 makes websites faster for users and simpler for frontend developers. The platform was built to bring the following benefits specifically for large-scale, database-driven websites:

  • Jamstack for eCommerce via pre 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 Nuxt.js app (CDN-as-JavaScript)
  • Edge rules that can be run locally, in pre-prod 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 Nuxt.js SAP Commerce Cloud store 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. 

Check out Annie Selke, a SAP Commerce Cloud website on Layer0. This mid-sized retailer is outranking eCommerce giants like Amazon, Wayfair, and Williams-Sonoma for key phrases in the search engines on Layer0 with 300ms average page loads.

If you're currently using Nuxt.js, use the this guide to deploy your Nuxt.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