From 63893365df24232d4ab22a3c8c967b88ae1e5a2d Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Wed, 16 Nov 2022 23:20:17 +0800 Subject: [PATCH] Update next.config.mjs --- apps/docs/next.config.mjs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjs index 14cfd9cecc2..3597428a58e 100644 --- a/apps/docs/next.config.mjs +++ b/apps/docs/next.config.mjs @@ -50,6 +50,27 @@ const nextConfig = { dangerouslyAllowSVG: true, domains: ['avatars.githubusercontent.com', 'github.com', 'user-images.githubusercontent.com'], }, + async headers() { + return [ + { + source: '/(.*)', + headers: [ + { + key: 'Strict-Transport-Security', + value: '', + }, + { + key: 'X-Robots-Tag', + value: 'all', + }, + { + key: 'X-Frame-Options', + value: 'DENY', + }, + ], + }, + ] + }, } // next.config.js