@functionalcms/svelte-components 4.36.7 → 4.36.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,8 @@ export const getCommunicationService = (locals, endpoint = undefined) => {
18
18
  export const getWebsiteService = (locals, endpoint = undefined) => {
19
19
  const accessToken = getAccessToken(locals);
20
20
  const serviceEndopint = endpoint ?? ENDPOINT;
21
- const service = new WebsitesService(accessToken, DOMAIN, serviceEndopint);
21
+ const finalDomain = locals?.domain || DOMAIN;
22
+ const service = new WebsitesService(accessToken, finalDomain, serviceEndopint);
22
23
  return service;
23
24
  };
24
25
  export const getTemplateService = (locals, endpoint = undefined) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "4.36.7",
3
+ "version": "4.36.8",
4
4
  "license": "MIT",
5
5
  "watch": {
6
6
  "build": {