Skip to content

Commit

Permalink
fix:slack link 404 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MadhavDhatrak committed Jan 17, 2025
1 parent e181398 commit 1747f38
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
14 changes: 14 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
async redirects() {
return [
{
source: '/slack',
destination: 'https://join.slack.com/t/json-schema/shared_invite/zt-2ued3v79g-Tk_aI32ZdW~ST0EWpGBwNQ',
permanent: false,
},
{
source: '/slack-redirect',
destination: 'https://join.slack.com/t/json-schema/shared_invite/zt-2ued3v79g-Tk_aI32ZdW~ST0EWpGBwNQ',
permanent: false,
}
];
},
reactStrictMode: true,
output: 'export',
pageExtensions: ['page.tsx'],
Expand Down
10 changes: 6 additions & 4 deletions pages/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,14 @@ const Home = (props: any) => {
>
Getting started
</Link>
<Link
href='/slack'
className='flex items-center justify-center rounded border-2 border-white dark:border-none hover:bg-blue-700 transition-all duration-300 ease-in-out text-white w-[194px] h-[40px] font-semibold bg-primary dark:shadow-2xl'
<a
href="/slack"

Check failure on line 168 in pages/index.page.tsx

View workflow job for this annotation

GitHub Actions / Code Quality Checks

Replace `"/slack"` with `'/slack'`

Check failure on line 168 in pages/index.page.tsx

View workflow job for this annotation

GitHub Actions / Code Quality Checks

Unexpected usage of doublequote
target="_blank"

Check failure on line 169 in pages/index.page.tsx

View workflow job for this annotation

GitHub Actions / Code Quality Checks

Replace `"_blank"` with `'_blank'`

Check failure on line 169 in pages/index.page.tsx

View workflow job for this annotation

GitHub Actions / Code Quality Checks

Unexpected usage of doublequote
rel="noopener noreferrer"

Check failure on line 170 in pages/index.page.tsx

View workflow job for this annotation

GitHub Actions / Code Quality Checks

Replace `"noopener·noreferrer"` with `'noopener·noreferrer'`

Check failure on line 170 in pages/index.page.tsx

View workflow job for this annotation

GitHub Actions / Code Quality Checks

Unexpected usage of doublequote
className="flex items-center justify-center rounded border-2 border-white dark:border-none hover:bg-blue-700 transition-all duration-300 ease-in-out text-white w-[194px] h-[40px] font-semibold bg-primary dark:shadow-2xl"

Check failure on line 171 in pages/index.page.tsx

View workflow job for this annotation

GitHub Actions / Code Quality Checks

Replace `"flex·items-center·justify-center·rounded·border-2·border-white·dark:border-none·hover:bg-blue-700·transition-all·duration-300·ease-in-out·text-white·w-[194px]·h-[40px]·font-semibold·bg-primary·dark:shadow-2xl"` with `'flex·items-center·justify-center·rounded·border-2·border-white·dark:border-none·hover:bg-blue-700·transition-all·duration-300·ease-in-out·text-white·w-[194px]·h-[40px]·font-semibold·bg-primary·dark:shadow-2xl'`

Check failure on line 171 in pages/index.page.tsx

View workflow job for this annotation

GitHub Actions / Code Quality Checks

Unexpected usage of doublequote
>
Join Slack
</Link>
</a>
<AlgoliaSearch />
</div>

Expand Down

0 comments on commit 1747f38

Please sign in to comment.