forked from sitecorelabs/xmcloud-foundation-head
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from ramangupta44/feature/add-script-header
Added Xdt for sitecore web.config
- Loading branch information
Showing
3 changed files
with
66 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration xmlns:xdt=" | ||
http://schemas.microsoft.com/XML-Document-Transform"> | ||
|
||
<location path="sitecore"> | ||
<system.webServer> | ||
<httpProtocol> | ||
<customHeaders> | ||
<!--DO NOT USE THIS CONTENT SECURITY POLICY EXAMPLE IN YOUR SOLUTION--> | ||
<add name="Content-Security-Policy" value="default-src 'self' 'unsafe-inline' 'unsafe-eval' | ||
https://apps.sitecore.net; | ||
img-src 'self' data: | ||
https://espirechdemo.sitecoresandbox.cloud/ | ||
https://s.gravatar.com | ||
https://*.wp.com/cdn.auth0.com/avatars; | ||
style-src 'self' 'unsafe-inline' | ||
https://fonts.googleapis.com; | ||
font-src 'self' 'unsafe-inline' | ||
https://fonts.gstatic.com; | ||
block-all-mixed-content; child-src 'self' | ||
https://espirechdemo.sitecoresandbox.cloud/; | ||
connect-src 'self' | ||
https://espirechdemo.sitecoresandbox.cloud/; | ||
media-src | ||
https://espirechdemo.sitecoresandbox.cloud/" | ||
xdt:Transform="Replace" xdt:Locator="Match(name)"/> | ||
</customHeaders> | ||
</httpProtocol> | ||
</system.webServer> | ||
</location> | ||
</configuration> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,38 @@ | ||
{ | ||
"renderingHosts": { | ||
"xmcloudpreview": { | ||
"path": "./src/sxastarter", | ||
"nodeVersion": "16.15.1", | ||
"jssDeploymentSecret": "xwf748xgtgko88jj7ls7pp6q2rr2bem6fmvmlipjcg", | ||
"enabled": true, | ||
"type": "sxa", | ||
"lintCommand": "lint", | ||
"startCommand": "start:production", | ||
"buildCommand": "build", | ||
"runCommand": "next:start" | ||
"renderingHosts": { | ||
"xmcloudpreview": { | ||
"path": "./src/sxastarter", | ||
"nodeVersion": "16.15.1", | ||
"jssDeploymentSecret": "xwf748xgtgko88jj7ls7pp6q2rr2bem6fmvmlipjcg", | ||
"enabled": true, | ||
"type": "sxa", | ||
"lintCommand": "lint", | ||
"startCommand": "start:production", | ||
"buildCommand": "build", | ||
"runCommand": "next:start" | ||
} | ||
}, | ||
"transforms": [ | ||
{ | ||
"xdtPath": "/app_data/xdts/web.config.xdt", | ||
"targetPath": "/web.config" | ||
} | ||
], | ||
"postActions": { | ||
"actions": { | ||
"warmUpCm": { | ||
"urls": [ | ||
"/sitecore/shell", | ||
"/sitecore/shell/Applications/Content%20Editor.aspx?sc_bw=1", | ||
"/sitecore/client/Applications/Launchpad" | ||
] | ||
}, | ||
"populateSchema": { | ||
"indexNames": [] | ||
}, | ||
"reindex": { | ||
"indexNames": [] | ||
} | ||
}, | ||
"postActions": { | ||
"actions":{ | ||
"warmUpCm": { | ||
"urls": [ | ||
"/sitecore/shell", | ||
"/sitecore/shell/Applications/Content%20Editor.aspx?sc_bw=1", | ||
"/sitecore/client/Applications/Launchpad" | ||
] | ||
}, | ||
"populateSchema": { | ||
"indexNames": [] | ||
}, | ||
"reindex": { | ||
"indexNames": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
4e904ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
sitecoredxsydney-dev-espire – ./src/sxastarter
sitecoredx-sydney-espire.vercel.app
sitecoredxsydney-dev-espire-ramangupta44.vercel.app
sitecoredxsydney-dev-espire-git-main-ramangupta44.vercel.app
sitecoredxsydney-dev-espire.vercel.app