mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-03 14:33:15 -04:00
Remove redundant "www" from Compass URLs across codebase
This commit is contained in:
@@ -4,7 +4,7 @@ type FavIconProps = {
|
||||
|
||||
const FavIconBlack = ({className}: FavIconProps) => (
|
||||
<img
|
||||
src="https://www.compassmeet.com/favicon-black.svg"
|
||||
src="https://compassmeet.com/favicon-black.svg"
|
||||
alt="Compass logo"
|
||||
className={`w-12 h-12 ${className ?? ''}`}
|
||||
/>
|
||||
|
||||
@@ -112,12 +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: '/((?!\\.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},
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export default async function handler(req: any, res: any) {
|
||||
const {path} = req.query // e.g. "v4FoTtuyX_XwjC3aS2_Y6/Martin.json"
|
||||
const upstreamUrl = `https://www.compassmeet.com/_next/data/${path}`
|
||||
const upstreamUrl = `https://compassmeet.com/_next/data/${path}`
|
||||
|
||||
const upstream = await fetch(upstreamUrl)
|
||||
const body = await upstream.text()
|
||||
|
||||
Reference in New Issue
Block a user