diff --git a/packages/integrations/node/src/http-server.ts b/packages/integrations/node/src/http-server.ts index 73773538e6..9049376017 100644 --- a/packages/integrations/node/src/http-server.ts +++ b/packages/integrations/node/src/http-server.ts @@ -63,9 +63,9 @@ export function createServer( handler(req, res); }); stream.on('headers', (_res: http.ServerResponse) => { - if(isImmutableAsset(encodedURI)) { + if (isImmutableAsset(encodedURI)) { // Taken from https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#immutable - _res.setHeader('Cache-Control', 'public, max-age=31536000, immutable') + _res.setHeader('Cache-Control', 'public, max-age=31536000, immutable'); } }); stream.on('directory', () => { diff --git a/packages/integrations/node/test/assets.test.js b/packages/integrations/node/test/assets.test.js index 00f0826e9a..9e44ab31d1 100644 --- a/packages/integrations/node/test/assets.test.js +++ b/packages/integrations/node/test/assets.test.js @@ -16,8 +16,8 @@ describe('Assets', () => { vite: { build: { assetsInlineLimit: 0, - } - } + }, + }, }); await fixture.build(); devPreview = await fixture.preview();