SlideShare a Scribd company logo
1 of 13
Netlify
Henry Smith
Solution Engineer
Unlocking Personalisation
on the Edge
Connect all your tools,
services, and code into
one workflow.
Run it all from the edge,
close to each user
Build sites, stores, and
apps in record time.
1 2 3
Connect Build Run
One Git-based workflow for all your code, tools, & services
One environment from dev to production.
Netlify
One workflow. One platform.
Netlify Web Development Cloud
Personalisation by Numbers
71% of customers expect personalisation
(McKinsey)
of digital businesses are
investing in personalisation
(Forrester)
89%
report an uplift
from personalisation
(Econsultancy)
4 in 5
of companies experience a
rise in conversion rates after
personalising their website
(Econsultancy)
94%
Netlify
Personalise
Without
Compromise
Netlify
out
Location Matters
Client-Side Server-Side
Edge
✔ Simple
✔ Scalable
✗ Poor performance
✗ Content Flash
✗ Less secure
✗ Single channel
✔ Access to backend
✔ Major changes
✔ Secure
✔ Multi-channel
✗ Average performance
✗ Scale
✔ Performance
✔ Scalable
✔ Secure
✔ Access to backend
✔ Multi-channel
✔ SEO
Edge Functions
CDN
Origin
Netlify Functions
Client Request
Netlify
Edge Functions
CDN
Origin
Netlify Functions
V8 Deno Runtime
Fast execution and low latency
Suitable for:
▪ Localisation
▪ Suggested/Personalised content
▪ A/B Testing
▪ Redirects/Rewrites
▪ Authentication
JavaScript & TypeScript Support
Netlify
https://personalise.netlify.app/
if (pathname === "/") {
if (personalisationCookie) {
return NextResponse.redirect(`${origin}/home`);
}
} else {
if (!personalisationCookie) {
return NextResponse.redirect(`${origin}/`);
}
}
Cookie Redirect
Cookie Present ?
No Yes
if (bucket === "b") {
response.rewriteHTML("#main-body", {
element(element) {
element.setAttribute("style",
"background-color:#3aafa9; color:white;");
},
});
}
A/B Test
Automated bucket assignment based
on cookies
Rewriting static pages on the edge
depending on bucket
Personalised Greeting
const message = `Welcome ${firstName} ${lastName}`;
response.setPageProp("message", message);
response.replaceText("#personalBanner", message);
Rewrite inner text to match users
name inside an edge function.
Cached Content
Prefetch
On-demand Builder
/.netlify/builders/generateBlog/cars
Submit
Cached JSON
{
“title”: …
“post”: …
“image”: …
}
Edge Function
■ Pre-generate content from
ChatGPT onBlur
■ Cache JSON response using on-
demand builder
■ Fetch cached content on /home
load
■ Populate content using Edge
function setPageProps
Localisation
■ Suggestion of products
based on the location of the
request.
■ Changing the currency.
■ Redirecting to specific
locale
const currencyOverride =
middlewareRequest.nextUrl.searchParams.get("country");
let country = currencyOverride ? currencyOverride :
nextRequest.geo.country;
let currency = getParamByISO(country, "symbol");
response.setPageProp("currency", currency);
response.replaceText("#currency", currency);
UK
France

More Related Content

Similar to Unlocking personalisation on the edge.pptx

Gartner IT Symposium 2014 - VMware Cloud Services
Gartner IT Symposium 2014 - VMware Cloud ServicesGartner IT Symposium 2014 - VMware Cloud Services
Gartner IT Symposium 2014 - VMware Cloud ServicesPhilip Say
 
Accelerate User Driven Innovation [Webinar]
Accelerate User Driven Innovation [Webinar]Accelerate User Driven Innovation [Webinar]
Accelerate User Driven Innovation [Webinar]Dynatrace
 
Why Should You Consider Using Node.Js Development? A Detail Guide
Why Should You Consider Using Node.Js Development? A Detail GuideWhy Should You Consider Using Node.Js Development? A Detail Guide
Why Should You Consider Using Node.Js Development? A Detail GuideSemaphoreSoftware1
 
Managing User Experience During Cloud Migrations
Managing User Experience During Cloud MigrationsManaging User Experience During Cloud Migrations
Managing User Experience During Cloud MigrationseG Innovations
 
apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on...
apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on...apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on...
apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on...apidays
 
End to-End Monitoring for ITSM and DevOps
End to-End Monitoring for ITSM and DevOpsEnd to-End Monitoring for ITSM and DevOps
End to-End Monitoring for ITSM and DevOpseG Innovations
 
Go Hybrid with Azure Web Apps
Go Hybrid with Azure Web AppsGo Hybrid with Azure Web Apps
Go Hybrid with Azure Web AppsTom Van Gramberen
 
FME:23 Bringing Life to Data
FME:23 Bringing Life to DataFME:23 Bringing Life to Data
FME:23 Bringing Life to DataSafe Software
 
How to Avoid the Top 7 Mistakes Made When Managing Citrix Performance
How to Avoid the Top 7 Mistakes Made When Managing Citrix PerformanceHow to Avoid the Top 7 Mistakes Made When Managing Citrix Performance
How to Avoid the Top 7 Mistakes Made When Managing Citrix PerformanceeG Innovations
 
How to Avoid the Top 7 Mistakes Made When Managing Citrix Performance
How to Avoid the Top 7 Mistakes Made When Managing Citrix PerformanceHow to Avoid the Top 7 Mistakes Made When Managing Citrix Performance
How to Avoid the Top 7 Mistakes Made When Managing Citrix PerformanceChristine Ackley
 
What's New in Progress Sitefinity 9.2 Webinar
What's New in Progress Sitefinity 9.2 WebinarWhat's New in Progress Sitefinity 9.2 Webinar
What's New in Progress Sitefinity 9.2 WebinarProgress® Sitefinity™
 
Why does Citrix use eG Enterprise for End-to-End Monitoring at Citrix Summit ...
Why does Citrix use eG Enterprise for End-to-End Monitoring at Citrix Summit ...Why does Citrix use eG Enterprise for End-to-End Monitoring at Citrix Summit ...
Why does Citrix use eG Enterprise for End-to-End Monitoring at Citrix Summit ...eG Innovations
 
Continuous Delivery Pipeline in the Cloud – How to Achieve Continous Everything
Continuous Delivery Pipeline in the Cloud – How to Achieve Continous Everything Continuous Delivery Pipeline in the Cloud – How to Achieve Continous Everything
Continuous Delivery Pipeline in the Cloud – How to Achieve Continous Everything CA Technologies
 
Oracle Cloud upcoming trends
Oracle Cloud upcoming trendsOracle Cloud upcoming trends
Oracle Cloud upcoming trendsaspiresystem
 
Introduction to Neo4j
Introduction to Neo4jIntroduction to Neo4j
Introduction to Neo4jNeo4j
 
Virtual Ops Center
Virtual Ops CenterVirtual Ops Center
Virtual Ops CenterInfosys
 
How to Balance System Speed and Risk for Multi-Platform Innovation
How to Balance System Speed and Risk for Multi-Platform InnovationHow to Balance System Speed and Risk for Multi-Platform Innovation
How to Balance System Speed and Risk for Multi-Platform InnovationClaudia Ring
 
ClientSummit2010_CloudWorkshop
ClientSummit2010_CloudWorkshopClientSummit2010_CloudWorkshop
ClientSummit2010_CloudWorkshopRazorfish
 
Impact of CD, Clean Code, ... on Team Performance
Impact of CD, Clean Code, ... on Team PerformanceImpact of CD, Clean Code, ... on Team Performance
Impact of CD, Clean Code, ... on Team PerformanceFredrik Wendt
 

Similar to Unlocking personalisation on the edge.pptx (20)

Gartner IT Symposium 2014 - VMware Cloud Services
Gartner IT Symposium 2014 - VMware Cloud ServicesGartner IT Symposium 2014 - VMware Cloud Services
Gartner IT Symposium 2014 - VMware Cloud Services
 
Accelerate User Driven Innovation [Webinar]
Accelerate User Driven Innovation [Webinar]Accelerate User Driven Innovation [Webinar]
Accelerate User Driven Innovation [Webinar]
 
Why Should You Consider Using Node.Js Development? A Detail Guide
Why Should You Consider Using Node.Js Development? A Detail GuideWhy Should You Consider Using Node.Js Development? A Detail Guide
Why Should You Consider Using Node.Js Development? A Detail Guide
 
Managing User Experience During Cloud Migrations
Managing User Experience During Cloud MigrationsManaging User Experience During Cloud Migrations
Managing User Experience During Cloud Migrations
 
apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on...
apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on...apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on...
apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on...
 
End to-End Monitoring for ITSM and DevOps
End to-End Monitoring for ITSM and DevOpsEnd to-End Monitoring for ITSM and DevOps
End to-End Monitoring for ITSM and DevOps
 
Go Hybrid with Azure Web Apps
Go Hybrid with Azure Web AppsGo Hybrid with Azure Web Apps
Go Hybrid with Azure Web Apps
 
FME:23 Bringing Life to Data
FME:23 Bringing Life to DataFME:23 Bringing Life to Data
FME:23 Bringing Life to Data
 
How to Avoid the Top 7 Mistakes Made When Managing Citrix Performance
How to Avoid the Top 7 Mistakes Made When Managing Citrix PerformanceHow to Avoid the Top 7 Mistakes Made When Managing Citrix Performance
How to Avoid the Top 7 Mistakes Made When Managing Citrix Performance
 
How to Avoid the Top 7 Mistakes Made When Managing Citrix Performance
How to Avoid the Top 7 Mistakes Made When Managing Citrix PerformanceHow to Avoid the Top 7 Mistakes Made When Managing Citrix Performance
How to Avoid the Top 7 Mistakes Made When Managing Citrix Performance
 
What's New in Progress Sitefinity 9.2 Webinar
What's New in Progress Sitefinity 9.2 WebinarWhat's New in Progress Sitefinity 9.2 Webinar
What's New in Progress Sitefinity 9.2 Webinar
 
Why does Citrix use eG Enterprise for End-to-End Monitoring at Citrix Summit ...
Why does Citrix use eG Enterprise for End-to-End Monitoring at Citrix Summit ...Why does Citrix use eG Enterprise for End-to-End Monitoring at Citrix Summit ...
Why does Citrix use eG Enterprise for End-to-End Monitoring at Citrix Summit ...
 
Continuous Delivery Pipeline in the Cloud – How to Achieve Continous Everything
Continuous Delivery Pipeline in the Cloud – How to Achieve Continous Everything Continuous Delivery Pipeline in the Cloud – How to Achieve Continous Everything
Continuous Delivery Pipeline in the Cloud – How to Achieve Continous Everything
 
Oracle Cloud upcoming trends
Oracle Cloud upcoming trendsOracle Cloud upcoming trends
Oracle Cloud upcoming trends
 
Introduction to Neo4j
Introduction to Neo4jIntroduction to Neo4j
Introduction to Neo4j
 
Virtual Ops Center
Virtual Ops CenterVirtual Ops Center
Virtual Ops Center
 
How to Balance System Speed and Risk for Multi-Platform Innovation
How to Balance System Speed and Risk for Multi-Platform InnovationHow to Balance System Speed and Risk for Multi-Platform Innovation
How to Balance System Speed and Risk for Multi-Platform Innovation
 
ClientSummit2010_CloudWorkshop
ClientSummit2010_CloudWorkshopClientSummit2010_CloudWorkshop
ClientSummit2010_CloudWorkshop
 
Scaling Legacy
Scaling LegacyScaling Legacy
Scaling Legacy
 
Impact of CD, Clean Code, ... on Team Performance
Impact of CD, Clean Code, ... on Team PerformanceImpact of CD, Clean Code, ... on Team Performance
Impact of CD, Clean Code, ... on Team Performance
 

Recently uploaded

GraphSummit Milan - Neo4j: The Art of the Possible with Graph
GraphSummit Milan - Neo4j: The Art of the Possible with GraphGraphSummit Milan - Neo4j: The Art of the Possible with Graph
GraphSummit Milan - Neo4j: The Art of the Possible with GraphNeo4j
 
Transformer Neural Network Use Cases with Links
Transformer Neural Network Use Cases with LinksTransformer Neural Network Use Cases with Links
Transformer Neural Network Use Cases with LinksJinanKordab
 
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024SimonedeGijt
 
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...drm1699
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxAnnaArtyushina1
 
Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Maxim Salnikov
 
OpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCAOpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCAShane Coughlan
 
Your Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | EvmuxYour Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | Evmuxevmux96
 
Weeding your micro service landscape.pdf
Weeding your micro service landscape.pdfWeeding your micro service landscape.pdf
Weeding your micro service landscape.pdftimtebeek1
 
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypseTomasz Kowalczewski
 
[GRCPP] Introduction to concepts (C++20)
[GRCPP] Introduction to concepts (C++20)[GRCPP] Introduction to concepts (C++20)
[GRCPP] Introduction to concepts (C++20)Dimitrios Platis
 
Effective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeConEffective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeConNatan Silnitsky
 
Encryption Recap: A Refresher on Key Concepts
Encryption Recap: A Refresher on Key ConceptsEncryption Recap: A Refresher on Key Concepts
Encryption Recap: A Refresher on Key Conceptsthomashtkim
 
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Andreas Granig
 
Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Eraconfluent
 

Recently uploaded (20)

GraphSummit Milan - Neo4j: The Art of the Possible with Graph
GraphSummit Milan - Neo4j: The Art of the Possible with GraphGraphSummit Milan - Neo4j: The Art of the Possible with Graph
GraphSummit Milan - Neo4j: The Art of the Possible with Graph
 
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
 
Transformer Neural Network Use Cases with Links
Transformer Neural Network Use Cases with LinksTransformer Neural Network Use Cases with Links
Transformer Neural Network Use Cases with Links
 
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
 
Abortion Pill Prices Jane Furse ](+27832195400*)[🏥Women's Abortion Clinic in ...
Abortion Pill Prices Jane Furse ](+27832195400*)[🏥Women's Abortion Clinic in ...Abortion Pill Prices Jane Furse ](+27832195400*)[🏥Women's Abortion Clinic in ...
Abortion Pill Prices Jane Furse ](+27832195400*)[🏥Women's Abortion Clinic in ...
 
Abortion Clinic in Bloemfontein [(+27832195400*)]🏥Safe Abortion Pills In Bloe...
Abortion Clinic in Bloemfontein [(+27832195400*)]🏥Safe Abortion Pills In Bloe...Abortion Clinic in Bloemfontein [(+27832195400*)]🏥Safe Abortion Pills In Bloe...
Abortion Clinic in Bloemfontein [(+27832195400*)]🏥Safe Abortion Pills In Bloe...
 
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?
 
OpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCAOpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCA
 
Abortion Clinic in Midrand [(+27832195400*)]🏥Safe Abortion Pills In Midrand |...
Abortion Clinic in Midrand [(+27832195400*)]🏥Safe Abortion Pills In Midrand |...Abortion Clinic in Midrand [(+27832195400*)]🏥Safe Abortion Pills In Midrand |...
Abortion Clinic in Midrand [(+27832195400*)]🏥Safe Abortion Pills In Midrand |...
 
Your Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | EvmuxYour Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | Evmux
 
微信号购买
微信号购买微信号购买
微信号购买
 
Weeding your micro service landscape.pdf
Weeding your micro service landscape.pdfWeeding your micro service landscape.pdf
Weeding your micro service landscape.pdf
 
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
 
[GRCPP] Introduction to concepts (C++20)
[GRCPP] Introduction to concepts (C++20)[GRCPP] Introduction to concepts (C++20)
[GRCPP] Introduction to concepts (C++20)
 
Effective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeConEffective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeCon
 
Encryption Recap: A Refresher on Key Concepts
Encryption Recap: A Refresher on Key ConceptsEncryption Recap: A Refresher on Key Concepts
Encryption Recap: A Refresher on Key Concepts
 
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
 
Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Era
 

Unlocking personalisation on the edge.pptx

  • 2. Connect all your tools, services, and code into one workflow. Run it all from the edge, close to each user Build sites, stores, and apps in record time. 1 2 3 Connect Build Run One Git-based workflow for all your code, tools, & services One environment from dev to production. Netlify One workflow. One platform. Netlify Web Development Cloud
  • 3. Personalisation by Numbers 71% of customers expect personalisation (McKinsey) of digital businesses are investing in personalisation (Forrester) 89% report an uplift from personalisation (Econsultancy) 4 in 5 of companies experience a rise in conversion rates after personalising their website (Econsultancy) 94% Netlify
  • 5. Location Matters Client-Side Server-Side Edge ✔ Simple ✔ Scalable ✗ Poor performance ✗ Content Flash ✗ Less secure ✗ Single channel ✔ Access to backend ✔ Major changes ✔ Secure ✔ Multi-channel ✗ Average performance ✗ Scale ✔ Performance ✔ Scalable ✔ Secure ✔ Access to backend ✔ Multi-channel ✔ SEO
  • 7. Edge Functions CDN Origin Netlify Functions V8 Deno Runtime Fast execution and low latency Suitable for: ▪ Localisation ▪ Suggested/Personalised content ▪ A/B Testing ▪ Redirects/Rewrites ▪ Authentication JavaScript & TypeScript Support Netlify
  • 9. if (pathname === "/") { if (personalisationCookie) { return NextResponse.redirect(`${origin}/home`); } } else { if (!personalisationCookie) { return NextResponse.redirect(`${origin}/`); } } Cookie Redirect Cookie Present ? No Yes
  • 10. if (bucket === "b") { response.rewriteHTML("#main-body", { element(element) { element.setAttribute("style", "background-color:#3aafa9; color:white;"); }, }); } A/B Test Automated bucket assignment based on cookies Rewriting static pages on the edge depending on bucket
  • 11. Personalised Greeting const message = `Welcome ${firstName} ${lastName}`; response.setPageProp("message", message); response.replaceText("#personalBanner", message); Rewrite inner text to match users name inside an edge function.
  • 12. Cached Content Prefetch On-demand Builder /.netlify/builders/generateBlog/cars Submit Cached JSON { “title”: … “post”: … “image”: … } Edge Function ■ Pre-generate content from ChatGPT onBlur ■ Cache JSON response using on- demand builder ■ Fetch cached content on /home load ■ Populate content using Edge function setPageProps
  • 13. Localisation ■ Suggestion of products based on the location of the request. ■ Changing the currency. ■ Redirecting to specific locale const currencyOverride = middlewareRequest.nextUrl.searchParams.get("country"); let country = currencyOverride ? currencyOverride : nextRequest.geo.country; let currency = getParamByISO(country, "symbol"); response.setPageProp("currency", currency); response.replaceText("#currency", currency); UK France