Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;