Skip to content

Commit

Permalink
feat: docs redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
japhethLG committed Nov 14, 2024
1 parent ccb4357 commit fc20d12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
10 changes: 5 additions & 5 deletions src/config/redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ const docsRedirects = [
destination: 'https://docs.zesty.io/docs/parsley',
permanent: true,
},
{
source: '/docs/media/api-reference/:path*',
destination: 'https://docs.zesty.io/reference/media-api-reference',
permanent: true,
},
{
source: '/docs/media/api-reference/manager/:path*',
destination: 'https://docs.zesty.io/reference/media-manager-api-reference',
Expand All @@ -44,6 +39,11 @@ const docsRedirects = [
destination: 'https://docs.zesty.io/reference/media-resolver-api-reference',
permanent: true,
},
{
source: '/docs/media/api-reference/:path*',
destination: 'https://docs.zesty.io/reference/media-api-reference',
permanent: true,
},
];

module.exports = { docsRedirects };
12 changes: 1 addition & 11 deletions src/revamp/ui/GetDemoSection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ import useGetDynamicData from './useGetDynamicData';
import { useRouter } from 'next/router';
import ZestyImage from 'blocks/Image/ZestyImage';

const acorns =
'https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Acorns%20Logo.svg',
bjs = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/BJ's%20Logo.svg`,
const bjs = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/BJ's%20Logo.svg`,
rocketLeague = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Horizontal_Text.svg`,
cornershop = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Logo_de_Cornershop%201.svg`,
phoenixSuns = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Phoenix%20Suns.svg`,
Expand Down Expand Up @@ -369,14 +367,6 @@ export function Logos({ invert = false, alignLeft }) {
height="32px"
alt={generateAlt('Singlife')}
/>
<img
style={{ filter: invert ? 'invert(0.5)' : 'none' }}
loading="lazy"
src={acorns}
width="94px"
height="32px"
alt={generateAlt('Acorns')}
/>
<img
style={{ filter: invert ? 'invert(0.5)' : 'none' }}
loading="lazy"
Expand Down

0 comments on commit fc20d12

Please sign in to comment.