Skip to content

Commit

Permalink
Build complete for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Dec 8, 2023
1 parent 97ed781 commit b096021
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/(public)/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ export const generateStaticParams = async () => {
params.addPageLimit(50);
let paths: GetStaticPathsResult["paths"] = [];

if (process.env.BUILD_COMPLETE !== 'true') {
console.log('Building only portion of the site. Enable the `BUILD_COMPLETE` for production environments.');
}

try {
paths = await getPathsFromContext([
'node--stanford_page',
Expand All @@ -176,7 +172,7 @@ export const generateStaticParams = async () => {
'node--sul_library'
], {}, {params: params.getQueryObject()});

let fetchMore = process.env.BUILD_COMPLETE === 'true';
let fetchMore = process.env.BUILD_COMPLETE === 'true' || process.env.CI !== 'true';
let fetchedData: GetStaticPathsResult["paths"] = []
let page = 1;
while (fetchMore) {
Expand Down

0 comments on commit b096021

Please sign in to comment.