-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a cloud region config option to the global_config to allow either 'us' (default), or 'eu' to be set as the cloud region. The cloud region determines where the search assets and ytag are sourced from. J=BACK-2277 TEST=manual, auto Using the test site, set the cloudRegion to "eu" and confirmed the assets are loaded from the EU CDN and executed searches against the EU search endpoints
- Loading branch information
Showing
10 changed files
with
104 additions
and
25 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ static/node_modules/ | |
static/dist/ | ||
node_modules | ||
**/.DS_Store | ||
.idea/ |
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
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
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,14 +1,15 @@ | ||
{{!-- | ||
Returns the SDK js script tags needed by the page. | ||
@param locale | ||
@param locale | ||
@param sdkVersion | ||
@param cloudRegion | ||
--}} | ||
<script | ||
src="{{sdkAssetUrl sdkVersion locale "answers-modern.min.js"}}" | ||
src="{{sdkAssetUrl sdkVersion locale "answers-modern.min.js" cloudRegion}}" | ||
type="module" | ||
></script> | ||
<script | ||
src="{{sdkAssetUrl sdkVersion locale "answers.min.js"}}" | ||
src="{{sdkAssetUrl sdkVersion locale "answers.min.js" cloudRegion}}" | ||
nomodule | ||
defer | ||
></script> |
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,5 +1,5 @@ | ||
exports.PORT=9999; | ||
exports.VERTICAL_SEARCH_URL_REGEX=/v2\/accounts\/me\/answers\/vertical\/query/; | ||
exports.UNIVERSAL_SEARCH_URL_REGEX=/v2\/accounts\/me\/answers\/query/; | ||
exports.UNIVERSAL_AUTOCOMPLETE_URL_REGEX=/v2\/accounts\/me\/answers\/autocomplete/; | ||
exports.VERTICAL_AUTOCOMPLETE_URL_REGEX=/v2\/accounts\/me\/answers\/vertical\/autocomplete/; | ||
exports.VERTICAL_SEARCH_URL_REGEX=/v2\/accounts\/me\/search\/vertical\/query/; | ||
exports.UNIVERSAL_SEARCH_URL_REGEX=/v2\/accounts\/me\/search\/query/; | ||
exports.UNIVERSAL_AUTOCOMPLETE_URL_REGEX=/v2\/accounts\/me\/search\/autocomplete/; | ||
exports.VERTICAL_AUTOCOMPLETE_URL_REGEX=/v2\/accounts\/me\/search\/vertical\/autocomplete/; |
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