Migration From WordPress To JAMstack – A Complete Guide
Tags: wordpress, jamstack, headless, webdev
Published: 2021-01-26 15:46:12

<!-- wp:heading -->
<h2><strong>Introduction</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><strong>WordPress is the most popular CMS in the world</strong>. It’s easy to use, gives a lot of possibilities, and you can install it in 5 minutes. Unfortunately, many businesses consider migrating from <strong>WordPress to JAMstack</strong> because of their old website issues like:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>low page speed,</li><li>low Google rankings,</li><li>decreasing organic traffic from Google,</li><li>images that slow down the website,</li><li>potential hacker attacks,</li><li>and more issues which you can find <a rel="noreferrer noopener nofollow" href="https://subsign.medium.com/disadvantages-of-a-wordpress-website-92f0a799b823" target="_blank">here</a>.</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>However, technology is providing us with more and more exciting solutions we can apply to fix and forget about many issues from the past.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>One such technology blessing is <strong>an architecture called <a rel="noreferrer noopener" href="https://pagepro.co/blog/what-is-jamstack/" target="_blank">JAMstack</a></strong>. It enables you to build bespoke and lightweight websites that are perfect for achieving a great User Experience, better Google rankings, and increase your overall competitive advantage online.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Technology is also full of understanding and is making it easier to migrate from outdated technologies to modern ones. So why not use it?&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In this article, we will guide you through the whole WordPress to JAMstack migration process, explain what, why, and how things should be done, based on the real-life examples from our case studies.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Let’s get started!<br><br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>What is JAMstack?</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><strong><a href="https://pagepro.co/blog/category/jamstack/">JAMstack</a></strong> is a technology stack that consists of client-side JavaScript, reusable APIs, and pre-build Markup. This term was introduced by Mathias Billmann, the CEO of Netlify, and is gaining popularity ever since.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Thanks to JAMstack, developers can get the benefits of a static website and the possibility to connect it to the dynamic, <a href="https://pagepro.co/blog/what-is-headless-cms/">headless CMS</a>.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>Why migrate from WordPress to JAMstack?</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Many times, our clients start talking with us by sending links to <strong>Google PageSpeed Insights</strong> report of their WordPress site, full of red color and a message from their previous developer saying that nothing can be done and results won’t improve no matter what.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"center","width":491,"height":507} -->
<div class="wp-block-image"><figure class="aligncenter is-resized"><img src="https://lh4.googleusercontent.com/k75h5IOUm8n5ZGr7c0KXsX6m7bAid3zsVf4t8bJckeUeIOtOFMjHFicdTA3rTNr2oyELc6-FtIA54YVmofBjt5S19LyMT-89r_Nipu_O38JXR_6vYsIsxPrphYhjJ5u02c78j2ff" alt="CNN PageSpeed results" width="491" height="507"/></figure></div>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>One of those clients was <strong>Flat World </strong>who grew out of the WordPress platform and was looking for a fast, secure, and careless substitute solution<strong>.</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The other significant group of customers is B2B or SaaS product marketers who’re investing a lot in content marketing and using their website for lead generation. If such a website is slow-loading, not SEO-efficient, and offers poor UX, marketing efforts will come to nothing.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The third group is <strong>eCommerce businesses</strong> that want to increase their conversion rates. </p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3><strong>Top reasons for migrating from WordPress to JAMstack</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>No matter what your industry or target market is, you will probably love the benefits of JAMstack like:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><strong>Better conversion rates</strong>, thanks to:<ul><li>High Performance</li><li>Great user experience</li><li>Stability and reliability of the website</li></ul></li><li><strong>Bigger traffic</strong>, thanks to:<ul><li>SEO Optimisation (server side rendering / static generation)</li><li>Better Google PageSpeed Results</li></ul></li><li><strong>Easier maintenance</strong>, thanks to:<ul><li>Better Security</li><li>Low hosting cost</li><li>Leveraging modern frontend frameworks<br><br></li></ul></li></ul>
<!-- /wp:list -->

<!-- wp:heading {"level":3} -->
<h3><strong>Most popular industries migrating to JAMstack</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Based on inquiries from our clients looking for a <a href="https://pagepro.co/jamstack-development.html">JAMstack development agency</a>, we noticed several industries that are commonly asking about migration from <strong>WordPress</strong> to <strong>JAMstack</strong>.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":4,"textColor":"vivid-red"} -->
<h4 class="has-vivid-red-color has-text-color">Software &amp; SaaS</h4>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Software companies usually have in-house developers, working on the product. In a lot of cases, the product is using JavaScript (<a href="https://pagepro.co/blog/tag/node-js/">NodeJS</a> and <a href="https://pagepro.co/blog/category/react/">React</a>). That means the company can better utilize developers’ time and allow them to build and maintain the company website also written in JavaScript.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>This industry is also the most tech-savvy, and it’s quickly adopting new trends like JAMstack.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In most of the cases, their client lifetime value is very high, and having a converting website is making a big difference in the company’s P/L (Profit and Loss Statement).<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":4,"textColor":"vivid-red"} -->
<h4 class="has-vivid-red-color has-text-color">Consumer Finance &amp; Insurance</h4>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The main challenge of operating in these industries is to build trust, and the website is a critical element of it. First of all, you can create a customer experience like enrollment that’s easy to follow and not confusing. Second of all, JAMstack websites are secure by default which is of key importance, especially in the Consumer Finance and Insurance industries.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>On the other hand, a WordPress website can be vulnerable to hacker attacks because either it has not been updated for a long time or a plugin with a bad reputation has been installed. There were many cases when sensitive data like contact details of clients leaked on the Internet.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>JAMstack architecture makes sure that your website will be safe because it’s static and doesn’t connect with any database in real-time.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":4,"textColor":"vivid-red"} -->
<h4 class="has-vivid-red-color has-text-color">E-commerce</h4>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>In this case, JAMstack is a tool to build unique and fast shopping experiences. Consequently, it leads to higher conversion rates and getting more potential customers.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>JAMstack decouples storefront (front-end layer) from the back-end layer (responsible for how online store operates) which is bringing a lot of benefits like:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><strong>Agility &amp; flexibility</strong> to improve customer experiences by iterating new features without worrying as much about how individual changes would impact a monolithic app.<br></li><li><strong>Stability &amp; Scalability</strong> thanks to pages that can be pre-generated and served directly from a content delivery network (CDN).<br></li><li><strong>Shorten time to market</strong> as a result of the freedom of the development team and ability to use different JavaScript / React libraries and UI Kits.</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>One of these clients was <a rel="noreferrer noopener" href="https://pagepro.co/otakuchan.html" target="_blank">OtakuChan</a> which is an online shop dedicated to <em>otakus </em>– fans of Anime, Cartoons, Comics, and Games. The other interesting case study is <a href="https://www.netlify.com/customers/victoria-beckham-beauty/">Victoria Beckhams' journey to the tech stack</a>.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":4,"textColor":"vivid-red"} -->
<h4 class="has-vivid-red-color has-text-color">Public Interest Organizations</h4>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Organisations like universities or government agencies publish frequently and publish a lot to communicate with different groups of people. Therefore, they need the flexibility and ability to move fast with updating their websites or build new ones, instead of the frustration of waiting for a developer to find the time. However, the requirements don’t end there. Such websites should be fast, engaging, and bring a ton of organic traffic, not to mention data security and the ability to stay with favourite CMS.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":4,"textColor":"vivid-red"} -->
<h4 class="has-vivid-red-color has-text-color">Content &amp; Media</h4>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Some companies rely on publishing image-rich content frequently, even a few times a day. Their success, consequently, depends on SEO, server-side rendering, proper image optimization, and high performance. Such a website created for content or media companies should also be easy to scale because of the growing organic traffic. All of this ultimately results in higher conversion rates, such as newsletter signups.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Let’s also mention that education – due to pandemic – moved to the digital world. Educators need modern technologies to ensure that the learning experience will be as enjoyable as possible.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Sidenote: please consider using <a href="https://pagepro.co/blog/tag/next-js/">Next.js</a> for frequently updated websites with user-generated content.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3><strong>Most popular types of websites worth migrating to from WordPress to JAMstack</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>JAMstack is a versatile solution, ready to be used in many cases like those mentioned above. However, some website types will benefit most from migration to JAMstack.</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Company Website</li><li>Company Blog</li><li>Technical Documentation</li><li>Custom Landing Pages</li><li>Lead Generation Landing Pages</li><li>Careers and Department Page</li><li>Media and Public Relations Site</li><li>Campaign or Event Site</li><li>Data Visualization</li><li>Interactive Questionnaire<br><br><br></li></ul>
<!-- /wp:list -->

<!-- wp:heading -->
<h2><br><br><strong>Things to consider before the migration</strong> from WordPress to JAMstack<br></h2>
<!-- /wp:heading -->

<!-- wp:heading {"level":3,"textColor":"black"} -->
<h3 class="has-black-color has-text-color"><strong>Existing vs New Design</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Rebuilding the website is an excellent moment to consider doing the full website redesign and maybe also updating the branding.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>While switching from a WordPress site, you will probably need to code the whole front-end part from scratch so the development can take the same time as re-coding the old design or implementing the new one.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Suppose you’re redesigning the website start with redefining the site architecture that will be prepared for your future developments and marketing initiatives. We usually start by checking the collected data in Google Analytics and Google Search console. The data shows us the most popular pages, how users find the website on Google, and where users leave the website.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>If this is not enough, we install HotJar to track user behaviour on the website.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>When all data is collected, and results are written down, we can start with a proper redesign, including UX and UI work.&nbsp;<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3,"textColor":"black"} -->
<h3 class="has-black-color has-text-color"><strong>Strategies for Migrating from WordPress to JAMstack</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>We have three main strategies:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Use WordPress as a headless CMS.</li><li>Migrate from WP to another headless CMS.</li><li>Forget about CMS and just prepare static websites.</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>Let’s have a look at each.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":4} -->
<h4>Using WordPress as a headless CMS</h4>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>You can entirely escape from WordPress, or you can leave its admin panel working as a headless CMS.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":5} -->
<h5><strong>What is a headless WordPress?</strong></h5>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The headless approach is a concept of splitting a site's architecture into a front-end layer and back-end layer. And since WordPress has a head (what we see after entering the website) like most of the CMSes nowadays, going headless means cutting off this head and leaving just the back-end (content, database, admin panel).</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Such a move results in the necessity of creating a visual layer from scratch and connecting it with WordPress through API. And this is how headless WordPress is created.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":5} -->
<h5><strong>Pros and Cons of WordPress headless CMS</strong></h5>
<!-- /wp:heading -->

<!-- wp:table {"hasFixedLayout":true,"className":"is-style-regular"} -->
<figure class="wp-block-table is-style-regular"><table class="has-fixed-layout"><tbody><tr><td><strong>Pros</strong></td><td><strong>Cons</strong></td></tr><tr><td>Your WordPress content is already there, no need to put it once again.<br><br>No need to export current WordPress posts<br><br>Your website editors team is familiar with the most popular CMS in the world.<br><br>You can save the monthly cost of headless CMS in the SaaS model.<br></td><td>You still have software that needs to be updated and maintained.<br><br>Integration with WordPress as a headless CMS can be time-consuming if you’re using plugins that don’t have API.</td></tr></tbody></table></figure>
<!-- /wp:table -->

<!-- wp:paragraph -->
<p><br></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>If you love the WordPress editing experience and plugins you use are providing API, consider staying on WP. It will make your transition to JAMstack much smoother.&nbsp;<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":4} -->
<h4>Migrating from WordPress to a headless CMS</h4>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Pick one of the most popular headless CMSes by preparing the list of requirements and answering some of the following questions:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Can I create the content that I want to?</li><li>What about hosting and maintenance? Who will be responsible for that?</li><li>Does it allow for real-time collaboration while working on the content?</li><li>Does it offer support and community so I can get my questions answered fast?</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>You can also decide after visiting <a href="https://jamstack.org/headless-cms/" target="_blank" rel="noreferrer noopener nofollow">JAMstack’s official website</a>, which offers a comprehensive list of content management systems for JAMstack sites.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>This step will allow you to cancel current WordPress PHP hosting and move to the newly chosen CMS.</p>
<!-- /wp:paragraph -->

<!-- wp:table {"hasFixedLayout":true,"className":"is-style-regular"} -->
<figure class="wp-block-table is-style-regular"><table class="has-fixed-layout"><tbody><tr><td><strong>Pros</strong></td><td><strong>Cons</strong></td></tr><tr><td>Less software to manage, maintain and update<br><br>Access to CDN (content delivery network) in most cases<br>Ability to use modern technologies and languages for better experience customization</td><td>Need to add your old WordPress content or import it from scratch<br><br>Need to import the old site <br>WordPress posts<br><br>Additional monthly cost<br><br>New CMS to learn</td></tr></tbody></table></figure>
<!-- /wp:table -->

<!-- wp:paragraph -->
<p><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":4} -->
<h4>Export WP Content to Flat Files (no-cms)</h4>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>If you’re not updating your website frequently maybe you don’t even need a CMS?</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>If so, you can export WordPress posts and other content to flat text files or Markdown files. Then, if you would like to update the website, you will just need to edit the particular file and commit the changes to the repository.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>If this sounds a bit too techy for you, please reconsider using a headless CMS.</p>
<!-- /wp:paragraph -->

<!-- wp:table {"hasFixedLayout":true,"className":"is-style-regular"} -->
<figure class="wp-block-table is-style-regular"><table class="has-fixed-layout"><tbody><tr><td><strong>Pros</strong></td><td><strong>Cons</strong></td></tr><tr><td>Less software to manage, maintain and update<br><br>No monthly cost of hosting or headless CMS fee<br><br></td><td>You need edit code to edit the website’s content.<br><br>Website editors are dependent on developers or need to have technical knowledge.</td></tr></tbody></table></figure>
<!-- /wp:table -->

<!-- wp:paragraph -->
<p><br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3><strong>Picking the full technology stack</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>When you were using WP, you only had a PHP &amp; MySQL hosting with CMS installed on it.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>JAMstack would require some other tools, and below you will find the list of battle-tested solutions you can count on:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><strong>Static site generators: <a href="https://pagepro.co/gatsby-development.html">Gatsby</a> or <a href="https://pagepro.co/nextjs-development.html" target="_blank" rel="noreferrer noopener">NextJS</a> </strong>– we fully recommend these two frameworks to efficiently create SSG websites (using Gatsby) or both SSG &amp; SSR (using Next JS).</li><li><strong>JAMStack Hosting: Netlify or Vercel</strong> – the platform we use to deploy changes and host our site</li><li><strong>Code hosting: GitHub or GitLab</strong> – where we will keep our site along with any amends we make along the way</li><li><strong>Headless CMS: Sanity CMS or Dato CMS</strong> – the CMS where we make changes to the website<br><br><br></li></ul>
<!-- /wp:list -->

<!-- wp:heading -->
<h2><strong>Main stages of a website migration from WordPress to JAMstack</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Every company has their process, but let’s take a look at ours. It's working well for us and was battle-tested for several years. It’s evolving, of course, but the main stages and deliverables remain unchanged.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3,"textColor":"vivid-red"} -->
<h3 class="has-vivid-red-color has-text-color"><strong>Discovery &amp; Define</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The goal of the discovery stage (or phase) is to analyse and understand your concept, target market needs, and see if there is a match. The next step is to gather all of the requirements, existing resources, and other necessary information and materials.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>Activities to perform:</strong></p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><strong>URLs List </strong>– make a list of all old URLs and check their structure. This will be needed for potential information architecture updates and also for redirects.</li><li><strong>Traffic analysis</strong> – check which channels are used and how they’re performing. This might have an impact on website functionalities and customizations per traffic channel. Check the best performing WordPress posts and make sure they will perform as good after the migration.</li><li><strong>Integrations</strong> – make a list of all integrations that the old website has (analytics, marketing automation, chatbots, user tracking).</li><li><strong>Data Sources</strong> – make a list of all data sources that the current website has and prepare the list for the new one.</li><li><strong>Tech Stack</strong> – pick the technology stack we mentioned above and do the initial configuration.</li><li><strong>CMS Configuration</strong> – check existing CMS configuration that you might need to replicate on the JAMstack website (title, description, rich snippets, OG tags, and images)</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>As a result, the discovery stage helps to better organise the development process and connect business goals with users' needs thanks to a well-crafted technology stack.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3,"textColor":"vivid-red"} -->
<h3 class="has-vivid-red-color has-text-color"><strong>UX &amp; UI Design</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>It’s time to design a website using the best user experience practices and all gathered information in the previous stage. That way, the website's design will not only look good but more importantly, it will help the company to reach specific business goals.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3,"textColor":"vivid-red"} -->
<h3 class="has-vivid-red-color has-text-color"><strong>Front-end Development</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The objective of this stage is to convert the design into a responsive, user-friendly website by using blocks or components.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>For larger projects,</strong> it’s good to consider starting with a style guide or design system.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>This will allow you to create a components library that will be easy to extend in the future and will help you achieve the design consistency between blocks, sections, and pages.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>For smaller projects, we just build the pages one after another.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3,"textColor":"vivid-red"} -->
<h3 class="has-vivid-red-color has-text-color"><strong>Data sources integration</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>When we have a refreshed user interface, we might want to feed it with the data.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Data can come from CMS, marketing tools, and third-party services. Using API, we’re fetching the needed data to our website.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3,"textColor":"vivid-red"} -->
<h3 class="has-vivid-red-color has-text-color"><strong>Optimisation &amp; Final Adjustments</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>A good practice is to do the optimisation alongside other tasks, but this is the stage where we’re making the last adjustments to achieve the best results.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Optimisation is about the code, general performance, and also valid infrastructure configuration of the production website instance.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>At this stage, we also need to do the final tests before going live:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>double-check if the redirections are working;</li><li>double-check canonical tags;</li><li>track the list of old URLs;</li><li>make 301 redirects (permanent change) to the new URLs, if they have been changed;<br><br></li></ul>
<!-- /wp:list -->

<!-- wp:heading {"level":3,"textColor":"vivid-red"} -->
<h3 class="has-vivid-red-color has-text-color"><strong>Release</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Thanks to JAMstack, the release is pretty straightforward. If the test version of the instance was working well, the production also should behave similarly – it’s just a static site.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Anyway, put your team on standby and point domain’s DNS to the new website.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3,"textColor":"vivid-red"} -->
<h3 class="has-vivid-red-color has-text-color"><strong>Post-Release</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>When the old website is replaced with a brand-new JAMstack site, we need to make sure it’s working well and that we achieved a smooth transition.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>Activities to perform:</strong></p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Monitor 404 error pages and fix tracking problems (Google Search Console)</li><li>Run Ahrefs site health audit</li><li>Track traffic sources and the number of visitors</li></ul>
<!-- /wp:list -->
<br><br><br>
<!-- wp:heading -->
<h2><strong>Possible issues with migration to JAMstack from WordPress</strong><br><br></h2>
<!-- /wp:heading -->

<!-- wp:heading {"level":3,"textColor":"vivid-red"} -->
<h3 class="has-vivid-red-color has-text-color"><strong>Painful rebuilds</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>In a WordPress site, you can just edit the contents of your blog post and in a few seconds, changes are visible for the visitors. On the other hand, in JAMstack static site generators after every change, even a minor one, the rebuild is needed. Put another way, it will take time before the changes will appear on the website.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>If your build process is not optimized, this can take from minutes to even hours.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>This can slow down the development, and increase infrastructure cost.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3,"textColor":"vivid-red"} -->
<h3 class="has-vivid-red-color has-text-color"><strong>Still no green marks on Google PageSpeed</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Unfortunately, JAMstack architecture doesn’t guarantee you will get green results both on mobile and desktop on Google PageSpeed Insights.</p>
<!-- /wp:paragraph -->

<!-- wp:image -->
<figure class="wp-block-image"><img src="https://lh4.googleusercontent.com/0M48cLdkGMR6rNi9ncN6t-qckzh6f9kcZilVYbU8eNVDyjunVNfo5vrme9Lj-TP-P0JsyLBPylzM3qFuLZHPAErG3JifdKZF0pN_N-VaxbUDoi3AFatM81Mo5QGHrp_TbWx-qWNz" alt="WordPress to JAMstack migration: Gatsby.js PageSpeed results"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Official Gatsby.js website has weak performance according to Google PageSpeed Tool.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Having great results is not just about website front-end and hosting – it’s also about how you structure your website, how you set up analytics, user tracking, and other third-party scripts that can slow your website down. PageSpeed's first approach might require changing your mindset and strategy, not just website technology.</p>
<!-- /wp:paragraph -->

<!-- wp:image -->
<figure class="wp-block-image"><img src="https://lh4.googleusercontent.com/lrkeoPL-OjXc8XwJA7WB2IVm3TX2sNhmOklDGcI8BzxmMScr3TPTiq6QDpUve874GbSnncZ5pp65RzOxKQhjEUE7CkWdW86IN50BRfRPWxRcdmpByfjvjMC6erMLY2NRckT6vwXB" alt="WordPress to JAMstack migration: Netlify website's PageSpeed results"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Official Netlify website has average performance according to Google PageSpeed Tool.<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3,"textColor":"vivid-red"} -->
<h3 class="has-vivid-red-color has-text-color"><strong>CMS Preview problems</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>If your website is statically generated, it means that after every change, the website needs to be rebuilt (regenerated) every time, which takes time. Your editors might be angry that this slows them down.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>This problem can be the most annoying when you’re using WordPress as a headless CMS because of limited preview options.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The whole process is much more comfortable with dedicated headless CMSes like Sanity, Dato, and Contentful with a mix of Gatsby Cloud, Vercel, or Netlify.&nbsp;<br><br></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3,"textColor":"vivid-red"} -->
<h3 class="has-vivid-red-color has-text-color"><strong>Reliance on a developer</strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Even if you’re not a technical person, you could set up a WordPress website in a few minutes, install a bunch of plugins and you were ready to go.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>JAMstack world is much more custom than WordPress, and you need a technical person to set it up and add new features. There are no magic plugins that add useful features and slow down the website.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>For additional customisation, you need a <a href="https://pagepro.co/jamstack-development.html">JAMstack developer</a>.</p>
<!-- /wp:paragraph -->

<!-- wp:separator {"className":"is-style-dots"} -->
<hr class="wp-block-separator is-style-dots"/>
<!-- /wp:separator -->

<!-- wp:heading -->
<h2><strong>Summary</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><strong>Migrating from WordPress to the new JAMstack </strong>architecture can bring your organization many benefits, but it’s also a significant move that means you need to rebuild your website from scratch.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>It is a perfect moment for updating your brand online presence and adjusting the content to visitors’ needs that might be different in different channels. It’s also a decision about the technology stack that will stay with you for the next few years. Pick something that is on a growing wave to make sure you will have developers to maintain the website and add new features. The right tech stack should also make the website editors super productive, so remember about choosing a good CMS.&nbsp;</p>
<!-- /wp:paragraph -->