Skip to content

Commit

Permalink
don't check for dead links on analytics because clerk uses 404 when u…
Browse files Browse the repository at this point in the history
…nauthed for some stupid reason
  • Loading branch information
jthrilly committed Nov 20, 2024
1 parent 21345fb commit 4092085
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ on:
jobs:
linkinator:
runs-on: ubuntu-latest
if: ${{ startsWith(github.event.deployment_status.environment, 'preview') && github.event.deployment_status.state == 'success' }}
# Runs if the deployment environment starts with 'preview' and the deployment status is 'success', and if the url does not contain 'analytics'
if: ${{ startsWith(github.event.deployment_status.environment, 'preview') && github.event.deployment_status.state == 'success' }} && !contains(github.event.deployment_status.environment_url, 'analytics')
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run dead-link-checker
run: npx @jthrilly/dead-link-checker ${{ github.event.deployment_status.environment_url }} -v --yes
6 changes: 3 additions & 3 deletions apps/analytics-web/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ClerkProvider } from "@clerk/nextjs";
import "@codaco/tailwind-config/globals.css";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "@codaco/tailwind-config/globals.css";
import "./globals.css";
import { ClerkProvider } from "@clerk/nextjs";

const inter = Inter({ subsets: ["latin"] });

Expand All @@ -17,7 +17,7 @@ export default function RootLayout({
children: React.ReactNode;
}) {
return (
<ClerkProvider>
<ClerkProvider afterSignOutUrl="/">
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion apps/analytics-web/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function DashboardPage() {
<h2 className="flex flex-row text-3xl font-bold">Dashboard</h2>
<div className="flex flex-row">
<UserManagementDialog />
<UserButton afterSignOutUrl="/" />
<UserButton />
</div>
</div>

Expand Down

0 comments on commit 4092085

Please sign in to comment.