diff --git a/web/next.config.ts b/web/next.config.ts index 88c6e89d..dc043e51 100644 --- a/web/next.config.ts +++ b/web/next.config.ts @@ -112,6 +112,12 @@ const nextConfig: NextConfig = { }, async redirects() { return [ + { + source: '/((?!\\.well-known/assetlinks\\.json).*)', + has: [{type: 'host', value: 'compassmeet.com'}], + destination: 'https://www.compassmeet.com/:path*', + permanent: true, + }, {source: '/discord', destination: 'https://discord.gg/8Vd7jzqjun', permanent: false}, {source: '/patreon', destination: 'https://patreon.com/CompassMeet', permanent: false}, { diff --git a/web/vercel.json b/web/vercel.json index f482b451..19630ece 100644 --- a/web/vercel.json +++ b/web/vercel.json @@ -9,13 +9,5 @@ "headers": [{"key": "Cache-Control", "value": "no-cache"}] } ], - "ignoreCommand": "git fetch --unshallow 2>/dev/null && echo $VERCEL_GIT_PREVIOUS_SHA $VERCEL_GIT_COMMIT_SHA && git diff $VERCEL_GIT_PREVIOUS_SHA $VERCEL_GIT_COMMIT_SHA --quiet -- ./ ../common/", - "redirects": [ - { - "source": "/((?!\\.well-known/assetlinks\\.json).*)", - "has": [{"type": "host", "value": "compassmeet.com"}], - "destination": "https://www.compassmeet.com/.well-known/assetlinks.json", - "permanent": true - } - ] + "ignoreCommand": "git fetch --unshallow 2>/dev/null && echo $VERCEL_GIT_PREVIOUS_SHA $VERCEL_GIT_COMMIT_SHA && git diff $VERCEL_GIT_PREVIOUS_SHA $VERCEL_GIT_COMMIT_SHA --quiet -- ./ ../common/" }