Skip to content

Commit

Permalink
increase timeout and add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
omariosouto committed Sep 20, 2024
1 parent 952160e commit 73cdaf6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _api/modules/cards/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export function cardsRepository() {

const cardsPromise = cardFileNames.map(async (fileName) => {
const slug = slugify(fileName.split(".")[0]);
// eslint-disable-next-line no-console
// console.log("--", fileName);

const cardCache = await storage.get(`card-${locale}-${slug}`);
if (cardCache) return cardCache;
Expand Down
2 changes: 2 additions & 0 deletions _api/modules/guides/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export function guidesRepository() {
const guides = await Promise.all<Guide>(
guideFileNames.map(async (fileName) => {
const slug = slugify(fileName.replace(".yaml", ""));
// eslint-disable-next-line no-console
console.log("[guide]", fileName);

const guideCache = await storage.get(`guide-${locale}-${slug}`);
if (guideCache) return guideCache;
Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const nextConfig = {
compiler: {
styledComponents: true,
},
staticPageGenerationTimeout: 60 * 5,
staticPageGenerationTimeout: 60 * 10,
async redirects() {
return redirects;
},
Expand Down

0 comments on commit 73cdaf6

Please sign in to comment.