File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ const plugin = function (defaults = {}) {
55
55
functions : `${ dir } /functions`
56
56
} ;
57
57
58
- const static_config = static_vercel_config ( builder ) ;
58
+ const static_config = static_vercel_config ( builder , defaults ) ;
59
59
60
60
builder . log . minor ( 'Generating serverless function...' ) ;
61
61
@@ -368,16 +368,19 @@ function write(file, data) {
368
368
}
369
369
370
370
// 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 ) {
373
376
/** @type {any[] } */
374
377
const prerendered_redirects = [ ] ;
375
378
376
379
/** @type {Record<string, { path: string }> } */
377
380
const overrides = { } ;
378
381
379
382
/** @type {import('./index').ImagesConfig } */
380
- const images = undefined ;
383
+ const images = config . images ;
381
384
382
385
for ( const [ src , redirect ] of builder . prerendered . redirects ) {
383
386
prerendered_redirects . push ( {
You can’t perform that action at this time.
0 commit comments