diff --git a/test/e2e/app-dir/custom-cache-control/custom-cache-control.test.ts b/test/e2e/app-dir/custom-cache-control/custom-cache-control.test.ts index 158c953df1681..63e8306dd9b5e 100644 --- a/test/e2e/app-dir/custom-cache-control/custom-cache-control.test.ts +++ b/test/e2e/app-dir/custom-cache-control/custom-cache-control.test.ts @@ -1,10 +1,16 @@ import { nextTestSetup } from 'e2e-utils' describe('custom-cache-control', () => { - const { next, isNextDev } = nextTestSetup({ + const { next, isNextDev, isNextDeploy } = nextTestSetup({ files: __dirname, }) + if (isNextDeploy) { + // customizing these headers won't apply on environments + // where headers are applied outside of the Next.js server + it('should skip for deploy', () => {}) + } + it('should have custom cache-control for app-ssg prerendered', async () => { const res = await next.fetch('/app-ssg/first') expect(res.headers.get('cache-control')).toBe(