diff --git a/next.config.js b/next.config.js index 7f2f57c..fd32181 100644 --- a/next.config.js +++ b/next.config.js @@ -4,6 +4,24 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + async headers() { + const headers = []; + + if (process.env.APP_ENV !== "production") { + headers.push({ + headers: [ + { + key: "X-Robots-Tag", + value: "noindex", + }, + ], + + source: "/:path*", + }); + } + + return headers; + }, }; module.exports = nextConfig;