Skip to content

Commit 58c67b2

Browse files
committed
feat: enhance cloud plan handling in gatsby-ssr.js
- Added logic to retrieve the cloud plan from URL parameters and update the corresponding UI element, improving dynamic content display based on user selection.
1 parent e8062ed commit 58c67b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gatsby-ssr.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ const cloudPlanScript = `
9393

9494
const fulfillCloudPlanScript = `
9595
(function() {
96+
const searchParams = new URLSearchParams(location.search);
97+
const cloudMode = searchParams.get("plan");
9698
const cloudPlanLabel = document.getElementById("${CLOUD_PLAN_LABEL_ELEMENT_ID}");
9799
if (cloudPlanLabel) {
98100
cloudPlanLabel.textContent = cloudMode;

0 commit comments

Comments
 (0)