diff --git a/app/next.config.js b/app/next.config.js index 61daf85..c2f1375 100644 --- a/app/next.config.js +++ b/app/next.config.js @@ -14,6 +14,17 @@ const nextConfig = { ignoreBuildErrors: false, }, images: { unoptimized: true }, + async redirects() { + return [ + // Chrome Web Store registers https://knowcap.ai/privacy as the + // extension's privacy URL. The actual page lives at /policy + // (created in commit 988833f). Without this redirect Google's + // publish-time reachability check 404s and blocks publish. + // Anyone googling "knowcap privacy policy" also lands here. + { source: '/privacy', destination: '/policy', permanent: true }, + { source: '/privacy-policy', destination: '/policy', permanent: true }, + ]; + }, }; module.exports = nextConfig;