@treely/strapi-slices 8.2.7 → 8.3.0
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/dist/constants/strapi.d.ts +1 -1
- package/dist/constants/strapi.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const STRAPI_URI: string;
|
|
2
|
-
export declare const STRAPI_DEFAULT_PAGE_SIZE = "
|
|
2
|
+
export declare const STRAPI_DEFAULT_PAGE_SIZE = "1000";
|
|
3
3
|
export declare const STRAPI_DEFAULT_POPULATE_DEPTH = "6";
|
|
4
4
|
export declare const STRAPI_FALLBACK_LOCALE = "en";
|
|
5
5
|
//# sourceMappingURL=strapi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strapi.d.ts","sourceRoot":"","sources":["../../src/constants/strapi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,QACwC,CAAC;AAEhE,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"strapi.d.ts","sourceRoot":"","sources":["../../src/constants/strapi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,QACwC,CAAC;AAEhE,eAAO,MAAM,wBAAwB,SAAS,CAAC;AAC/C,eAAO,MAAM,6BAA6B,MAAM,CAAC;AAEjD,eAAO,MAAM,sBAAsB,OAAO,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -54,7 +54,7 @@ var import_axios_cache_interceptor = require("axios-cache-interceptor");
|
|
|
54
54
|
|
|
55
55
|
// src/constants/strapi.ts
|
|
56
56
|
var STRAPI_URI = process.env.NEXT_PUBLIC_STRAPI_URI || "http://127.0.0.1:1337";
|
|
57
|
-
var STRAPI_DEFAULT_PAGE_SIZE = "
|
|
57
|
+
var STRAPI_DEFAULT_PAGE_SIZE = "1000";
|
|
58
58
|
var STRAPI_DEFAULT_POPULATE_DEPTH = "6";
|
|
59
59
|
var STRAPI_FALLBACK_LOCALE = "en";
|
|
60
60
|
|
|
@@ -175,7 +175,7 @@ var getStrapiProjects_default = getStrapiProjects;
|
|
|
175
175
|
var getPortfolioProjects = async (locale = "en", preview = false) => {
|
|
176
176
|
const cache2 = preview ? false : void 0;
|
|
177
177
|
const [{ data: fpmProjects }, strapiProjects] = await Promise.all([
|
|
178
|
-
fpmClient_default.get("/public/projects", { cache: cache2 }),
|
|
178
|
+
fpmClient_default.get("/public/projects?limit=1000", { cache: cache2 }),
|
|
179
179
|
getStrapiProjects_default(locale, STRAPI_DEFAULT_POPULATE_DEPTH, preview)
|
|
180
180
|
]);
|
|
181
181
|
return fpmProjects.map((fpmProject) => {
|