Deploying a Nuxt.js Store on Oracle CX Commerce Cloud

Deliver a sub-second Nuxt.js website on Oracle CX Commerce Cloud 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.

Oracle CX Commerce is a cloud-native, extensible SaaS commerce solution built with an API-first architecture and has an extensive REST API that can be used to implement shopping, checkout, and storefront administration in a portable frontend, such as a progressive web app or single-page application. CX Commerce comes with three modular options: fully integrated, non-integrated and integrated. A fully integrated storefront tightly connects the UI layer and the commerce services layer, whereas a non-integrated approach is akin to a headless one where the UI layer is separated from the backend commerce platform. The third approach is a hybrid, where the UI layer is separate from the backend but still has CX Commerce capabilities, such as site design tools, personalization, and A/B testing.

Unfortunately, Oracle CX Commerce Cloud does not support SSR, PWA or AMP out of he box, significantly hindering website performance. The platform can run JavaScript server-side, however, this capability is partitioned to custom paths that do not line up with the URLs of the existing commerce experience and are built for supporting server side extensions and not SSR. To add these capabilities on your own, you'll need a backend for frontends and a fleet of Node.js servers, but this still won't get a site down to sub-second speeds.

Layer0 lets you deliver your Nuxt.js storefront on Oracle CX Commerce in sub-seconds. The average website on Layer0 sees median page loads of 320ms, as measured by Largest Contentful Paint. However, Layer0 is much more than a website accelerator. It is a Jamstack platform for large eCommerce websites. Layer0 makes websites faster for users and simpler for frontend developers.

The platform was built specifically for large-scale, database-driven, revenue-generating websites and provides the following key 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 Nuxt.js app (CDN-as-JavaScript)
  • Edge rules that run locally, in pre-prod and production  
  • Automated, full-stack preview URLs from GitHub, GitLab, or Bitbucket with every new branch and push
  • 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 CX Commerce storefront 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. 

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