Skip to content

Commit 885ba69

Browse files
committed
initialize variable
1 parent f96a3f5 commit 885ba69

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

packages/adapter-vercel/index.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const plugin = function (defaults = {}) {
5555
functions: `${dir}/functions`
5656
};
5757

58-
const static_config = static_vercel_config(builder);
58+
const static_config = static_vercel_config(builder, defaults);
5959

6060
builder.log.minor('Generating serverless function...');
6161

@@ -368,16 +368,19 @@ function write(file, data) {
368368
}
369369

370370
// This function is duplicated in adapter-static
371-
/** @param {import('@sveltejs/kit').Builder} builder */
372-
function static_vercel_config(builder) {
371+
/**
372+
* @param {import('@sveltejs/kit').Builder} builder
373+
* @param {import('.').Config} config
374+
*/
375+
function static_vercel_config(builder, config) {
373376
/** @type {any[]} */
374377
const prerendered_redirects = [];
375378

376379
/** @type {Record<string, { path: string }>} */
377380
const overrides = {};
378381

379382
/** @type {import('./index').ImagesConfig} */
380-
const images = undefined;
383+
const images = config.images;
381384

382385
for (const [src, redirect] of builder.prerendered.redirects) {
383386
prerendered_redirects.push({

0 commit comments

Comments
 (0)