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