diff --git a/packages/integrations/netlify/src/netlify-functions.ts b/packages/integrations/netlify/src/netlify-functions.ts index bdfb78b8e..c0881bb05 100644 --- a/packages/integrations/netlify/src/netlify-functions.ts +++ b/packages/integrations/netlify/src/netlify-functions.ts @@ -56,10 +56,10 @@ export const createExports = (manifest: SSRManifest, args: Args) => { }; const rawPacked = (response.headers as HeadersWithRaw).raw(); - if('set-cookie' in rawPacked) { + if ('set-cookie' in rawPacked) { fnResponse.multiValueHeaders = { - 'set-cookie': rawPacked['set-cookie'] - } + 'set-cookie': rawPacked['set-cookie'], + }; } } diff --git a/packages/integrations/netlify/test/cookies.test.js b/packages/integrations/netlify/test/cookies.test.js index a8b304f56..0fdc126e8 100644 --- a/packages/integrations/netlify/test/cookies.test.js +++ b/packages/integrations/netlify/test/cookies.test.js @@ -39,12 +39,12 @@ describe('Cookies', () => { headers: {}, rawUrl: 'http://example.com/login', body: '{}', - isBase64Encoded: false + isBase64Encoded: false, }); expect(resp.statusCode).to.equal(301); expect(resp.headers.location).to.equal('/'); expect(resp.multiValueHeaders).to.be.deep.equal({ - 'set-cookie': [ 'foo=foo; HttpOnly', 'bar=bar; HttpOnly' ] + 'set-cookie': ['foo=foo; HttpOnly', 'bar=bar; HttpOnly'], }); }); });