Skip to content

Commit

Permalink
revert adapter-vercel changes
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Nov 2, 2024
1 parent 62bb53b commit 0e400ff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/adapter-vercel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const plugin = function (defaults = {}) {
/** @type {Map<string, string>} */
const functions = new Map();

/** @type {Map<import('@sveltejs/kit').RouteDefinition<import('./index.js').Config>, { expiration: number | false, bypassToken: string | undefined, allowQuery: string[] | undefined, group: number, passQuery: true }>} */
/** @type {Map<import('@sveltejs/kit').RouteDefinition<import('./index.js').Config>, { expiration: number | false, bypassToken: string | undefined, allowQuery: string[], group: number, passQuery: true }>} */
const isr_config = new Map();

/** @type {Set<string>} */
Expand Down Expand Up @@ -253,9 +253,7 @@ const plugin = function (defaults = {}) {
expiration: config.isr.expiration,
bypassToken: config.isr.bypassToken,
// for backward compat we probably need to set this to [] by default, and if passed null then undefined
allowQuery: config.isr.allowQuery
? ['__pathname', ...config.isr.allowQuery]
: undefined,
allowQuery: ['__pathname', ...(config.isr.allowQuery ?? [])],
group: isr_config.size + 1,
passQuery: true
});
Expand Down

0 comments on commit 0e400ff

Please sign in to comment.