create-sitecore-jss 22.4.0-canary.11 → 22.4.0-canary.13
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.
|
@@ -62,7 +62,7 @@ export const getStaticPaths: GetStaticPaths = async (context) => {
|
|
|
62
62
|
let paths: StaticPath[] = [];
|
|
63
63
|
let fallback: boolean | 'blocking' = 'blocking';
|
|
64
64
|
|
|
65
|
-
if (process.env.NODE_ENV !== 'development' &&
|
|
65
|
+
if (process.env.NODE_ENV !== 'development' && process.env.DISABLE_SSG_FETCH?.toLowerCase() !== 'true') {
|
|
66
66
|
try {
|
|
67
67
|
// Note: Next.js runs export in production mode
|
|
68
68
|
paths = await sitemapFetcher.fetch(context);
|
|
@@ -40,7 +40,7 @@ export const getStaticProps: GetStaticProps = async (context) => {
|
|
|
40
40
|
});
|
|
41
41
|
let resultErrorPages: ErrorPages | null = null;
|
|
42
42
|
|
|
43
|
-
if (
|
|
43
|
+
if (process.env.DISABLE_SSG_FETCH?.toLowerCase() !== 'true') {
|
|
44
44
|
try {
|
|
45
45
|
resultErrorPages = await errorPagesService.fetchErrorPages();
|
|
46
46
|
} catch (error) {
|
|
@@ -56,7 +56,7 @@ export const getStaticProps: GetStaticProps = async (context) => {
|
|
|
56
56
|
});
|
|
57
57
|
let resultErrorPages: ErrorPages | null = null;
|
|
58
58
|
|
|
59
|
-
if (
|
|
59
|
+
if (process.env.DISABLE_SSG_FETCH?.toLowerCase() !== 'true') {
|
|
60
60
|
try {
|
|
61
61
|
resultErrorPages = await errorPagesService.fetchErrorPages();
|
|
62
62
|
} catch (error) {
|
|
@@ -37,7 +37,7 @@ const sitemapApi = async (
|
|
|
37
37
|
const fetcher = new NativeDataFetcher();
|
|
38
38
|
const response = await fetcher.fetch(sitemapUrl);
|
|
39
39
|
|
|
40
|
-
const reader = response.
|
|
40
|
+
const reader = (response?.data as ReadableStream<Uint8Array>).getReader();
|
|
41
41
|
if (reader) {
|
|
42
42
|
while (true) {
|
|
43
43
|
const { done, value } = await reader.read();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-sitecore-jss",
|
|
3
|
-
"version": "22.4.0-canary.
|
|
3
|
+
"version": "22.4.0-canary.13",
|
|
4
4
|
"description": "Sitecore JSS initializer",
|
|
5
5
|
"bin": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"ts-node": "^10.9.1",
|
|
66
66
|
"typescript": "~5.6.3"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "83f002f3f322c9ff2013f4f7c3ee9d2f96cc5c37"
|
|
69
69
|
}
|