@vue-storefront/nuxt 3.0.1 → 3.0.2
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
# Change log
|
|
2
2
|
|
|
3
|
+
## 3.0.2
|
|
4
|
+
|
|
5
|
+
- **[FIXED]** Multi-store URL calculation, now working correctly in the browser.
|
|
6
|
+
|
|
3
7
|
## 3.0.1
|
|
4
8
|
|
|
5
9
|
- **[CHANGED]** Set `@vue-storefront/sdk` as a dependency instead of a peer dependency
|
|
6
10
|
|
|
7
11
|
## 3.0.0
|
|
8
12
|
|
|
9
|
-
- **[BREAKING]** Rewritten from scratch. Now the package exports a Nuxt module which allows to initialize the Vue Storefront SDK.
|
|
13
|
+
- **[BREAKING]** Rewritten from scratch. Now the package exports a Nuxt module which allows to initialize the Vue Storefront SDK.
|
package/dist/module.json
CHANGED
|
@@ -4,6 +4,11 @@ function calculateMiddlewareUrl({
|
|
|
4
4
|
}) {
|
|
5
5
|
const { apiUrl, ssrApiUrl } = options.middleware;
|
|
6
6
|
if (typeof window !== "undefined") {
|
|
7
|
+
if (options.multistore?.enabled) {
|
|
8
|
+
const url2 = new URL(apiUrl);
|
|
9
|
+
url2.host = window.location.host;
|
|
10
|
+
return url2.href;
|
|
11
|
+
}
|
|
7
12
|
return apiUrl;
|
|
8
13
|
}
|
|
9
14
|
if (ssrApiUrl) {
|