create-sitecore-jss 22.4.0-canary.12 → 22.4.0-canary.14

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' && !process.env.DISABLE_SSG_FETCH) {
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 (!process.env.DISABLE_SSG_FETCH) {
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 (!process.env.DISABLE_SSG_FETCH) {
59
+ if (process.env.DISABLE_SSG_FETCH?.toLowerCase() !== 'true') {
60
60
  try {
61
61
  resultErrorPages = await errorPagesService.fetchErrorPages();
62
62
  } catch (error) {
@@ -1,4 +1,4 @@
1
- import { NativeDataFetcher } from '@sitecore-jss/sitecore-jss';
1
+ import { NativeDataFetcher } from '@sitecore-jss/sitecore-jss-react';
2
2
 
3
3
  /**
4
4
  * Implements a data fetcher using NativeDataFetcher - replace with your favorite
@@ -1,4 +1,4 @@
1
- import { NativeDataFetcher } from '@sitecore-jss/sitecore-jss';
1
+ import { NativeDataFetcher } from '@sitecore-jss/sitecore-jss-vue';
2
2
 
3
3
  /**
4
4
  * Implements a data fetcher using NativeDataFetcher - replace with your favorite
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sitecore-jss",
3
- "version": "22.4.0-canary.12",
3
+ "version": "22.4.0-canary.14",
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": "9b7de9b9aa889adf1ccd445542ed903e3d5df54e"
68
+ "gitHead": "d07212049058fdd49b82f92715f88699eee350e8"
69
69
  }