Skip to content

Commit

Permalink
Merge pull request #6 from roqqetmedia/develop
Browse files Browse the repository at this point in the history
Production v1.1.0
  • Loading branch information
alipiry authored Aug 7, 2023
2 parents aae81b4 + e8af16a commit 60bc990
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

1 comment on commit 60bc990

@vercel
Copy link

@vercel vercel bot commented on 60bc990 Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.