This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NextRequest, NextResponse } from "next/server"; | |
import { get } from "@vercel/edge-config"; | |
export const config = { | |
matcher: "/payment", | |
}; | |
export async function middleware(req: NextRequest) { | |
// Check Edge Config to see if the maintenance page should be shown | |
const isInMaintenanceMode = await get("isInMaintenanceMode"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { get, has, getAll } from '@vercel/edge-config'; | |
// To read a single key | |
const someValue = await get("someKey") | |
// To check if a key exists | |
const someValue = await has('someKey'); | |
// To read all the items in data store | |
const someValue = await getAll(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xmcloud-nehem> dotnet sitecore cloud organization license --organization-id org_xxxxxxxxxxxxxxxx | |
Organization license has been saved to C:\Project\GitHub\xmcloud-nehem. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xmcloud-nehem> dotnet sitecore cloud organization health --organization-id org_xxxxxxxxxxxxx | |
Organization resources health status: Healthy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xmcloud-nehem> dotnet sitecore cloud organization info --organization-id org_xxxxxxxxxxxxxxxx | |
Id : org_xxxxxxxxxxxxxxxx | |
Name : epam-xxxx | |
Region : eus | |
CreatedAt : 5/8/2023 11:45:50 PM | |
CreatedBy : Automation | |
Tier : Corporate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotnet sitecore cloud organization info --organization-id org_xxxxxxxxxxxxxxxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove XM Cloud Plugin | |
dotnet sitecore plugin remove -n Sitecore.DevEx.Extensibility.XMCloud | |
# Add XM Cloud Plugin with the latest version | |
dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.XMCloud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotnet sitecore cloud deployment create --environment-id 75Uqhws1LX11cOZsRD9s2K --waitForPostActions true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"deployItems": { | |
"modules": ["SxaStarter.Feature.ScheduledPublish"] | |
}, | |
"buildTargets": [ | |
"./src/Plugin.csproj", | |
"./XmCloudSXAStarter.sln" | |
], | |
"renderingHosts": { | |
"sxastarter": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotnet sitecore cloud deployment create --environment-id 7na1U1zw35V0ptXIGrC1uE --upload |
NewerOlder