From c0caed83f7e95cb47b08a210816af8fb577799c2 Mon Sep 17 00:00:00 2001 From: Khuda Dad Nomani Date: Fri, 21 Jun 2024 17:06:36 +0100 Subject: [PATCH] use _headers file --- apps/studio-next/_headers | 3 +++ apps/studio-next/next.config.js | 15 +-------------- 2 files changed, 4 insertions(+), 14 deletions(-) create mode 100644 apps/studio-next/_headers diff --git a/apps/studio-next/_headers b/apps/studio-next/_headers new file mode 100644 index 000000000..1e7e7f8da --- /dev/null +++ b/apps/studio-next/_headers @@ -0,0 +1,3 @@ +/* + CDN-Cache-Control: public, max-age=36400, must-revalidate + Cache-Control: public, max-age=0, must-revalidate diff --git a/apps/studio-next/next.config.js b/apps/studio-next/next.config.js index 1bd552274..59aaacfea 100644 --- a/apps/studio-next/next.config.js +++ b/apps/studio-next/next.config.js @@ -35,20 +35,7 @@ const nextConfig = { ); return config - }, - async headers() { - return [ - { - source: '/', - headers: [ - { - key: 'Netlify-CDN-Cache-Control', - value: 'public, max-age=36400, must-revalidate', - }, - ], - }, - ] - }, + } } module.exports = nextConfig