diff --git a/svelte.config.js b/svelte.config.js index 5d7bf05ac..f6ba81c3c 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -9,12 +9,13 @@ const config = { preprocess: vitePreprocess(), kit: { - // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. - // If your environment is not supported or you settled on a specific environment, switch out the adapter. - // See https://kit.svelte.dev/docs/adapters for more information about adapters. + // See: + // https://svelte.dev/docs/kit/adapter-vercel adapter: adapter({ - // See: https://vercel.com/docs/edge-network/regions + runtime: 'nodejs22.x', regions: ['hnd1'], // Tokyo, Japan. + memory: 3008, // To avoid OOM errors on /workbooks/{slug} + maxDuration: 30, }), // See: // https://kit.svelte.dev/docs/configuration#alias