Compare commits
1 commit
main
...
feed-execu
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7d410cab09 |
2 changed files with 9 additions and 0 deletions
5
.changeset/tender-seas-hunt.md
Normal file
5
.changeset/tender-seas-hunt.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"saleor-app-products-feed": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Changed Vercel's maximum execution time to be 5 minutes for feed generation. This should help with the previous limits of 60s, that was not enough for feed to be generated.
|
|
@ -16,6 +16,10 @@ import { getDownloadUrl, getFileName } from "../../../../../modules/file-storage
|
||||||
import { RootConfig } from "../../../../../modules/app-configuration/app-config";
|
import { RootConfig } from "../../../../../modules/app-configuration/app-config";
|
||||||
import { z, ZodError } from "zod";
|
import { z, ZodError } from "zod";
|
||||||
|
|
||||||
|
export const config = {
|
||||||
|
maxDuration: 5,
|
||||||
|
};
|
||||||
|
|
||||||
// By default we cache the feed for 5 minutes. This can be changed by setting the FEED_CACHE_MAX_AGE
|
// By default we cache the feed for 5 minutes. This can be changed by setting the FEED_CACHE_MAX_AGE
|
||||||
const FEED_CACHE_MAX_AGE = process.env.FEED_CACHE_MAX_AGE
|
const FEED_CACHE_MAX_AGE = process.env.FEED_CACHE_MAX_AGE
|
||||||
? parseInt(process.env.FEED_CACHE_MAX_AGE, 10)
|
? parseInt(process.env.FEED_CACHE_MAX_AGE, 10)
|
||||||
|
|
Loading…
Reference in a new issue