Replies: 4 comments 4 replies
-
Do you have vercel pro or enterprise subscription? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Any updates? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I changed from @sveltejs/adapter-auto to @sveltejs/adapter-vercel, and then I got it working.
|
Beta Was this translation helpful? Give feedback.
2 replies
-
From the Svelte documentation, the current solution is now to export a config object from your +server.js, +page(.server).js and +layout(.server).js (or .ts):
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a single SvelteKit app deployed on Vercel. The app is deployed as a single function. Most of the endpoints are accessed by the the app client, so a short response duration (say 20 seconds) is what I need. However, I have other endpoints that are triggered by cron jobs that should run for 5 minutes and have different memory settings.
The documentation states that I can set the
maxDuration
configuration in the vercel adapter insvelte.config.js
. How can I override themaxDuration
for these cron jobs?As a side note, I saw that the documentation states:
The above is the resulting information when you select
SvelteKit
from the code sample dropdown selector - the code sample it references is missing for SvelteKit. Assuming I read in-between the lines, is the glob pattern that goes into thevercel.json
file applicable to individual files even if the app is deployed as a single function? I haven't had much success changing themaxDuration
value on anything other than the global setting in the adapter.Also, there is the SvelteKit
adapter-vercel
documentation that refers to overriding the configuration at a granular level using exports, but I have been unable to have those changes override the globalmaxDuration
setting.Any suggestions greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions