From 2902e282eb1d011e726f3639ff9f341ae1477f21 Mon Sep 17 00:00:00 2001 From: Altay Date: Tue, 12 Dec 2023 17:45:17 +0200 Subject: [PATCH] feat: add redirections to privacy policy and terms of service (#18) --- components/layout/app-footer.tsx | 5 ++--- next.config.mjs | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/components/layout/app-footer.tsx b/components/layout/app-footer.tsx index bb90d84..0dd973f 100644 --- a/components/layout/app-footer.tsx +++ b/components/layout/app-footer.tsx @@ -4,14 +4,13 @@ import React from 'react'; import { AppContent } from './app-content'; -// @TODO: replace with real links: SUPA-27 const FOOTER_SERVICE_LINKS = [ { - href: 'https://experiment.st', + href: '/privacy-policy', label: 'Privacy policy', }, { - href: 'https://experiment.st', + href: '/terms-of-service', label: 'Terms of service', }, ] as const; diff --git a/next.config.mjs b/next.config.mjs index 8048475..00ec467 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,6 +1,21 @@ import './env.mjs'; /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + redirects: async () => [ + { + destination: + 'https://experiment-station.notion.site/Privacy-Policy-for-Beecast-c69c47d343694b8884eede01f8a61341?pvs=4', + permanent: false, + source: '/privacy-policy', + }, + { + destination: + 'https://experiment-station.notion.site/Terms-of-Service-for-Beecast-85524ec372614383b4d86156e47e5df7?pvs=4', + permanent: false, + source: '/terms-of-service', + }, + ], +}; export default nextConfig;