Skip to content

Commit

Permalink
fix(gh-pages): deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
muddlebee committed Oct 22, 2024
1 parent 693db76 commit e9f726e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions components/Link.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import NextLink from 'next/link'

interface LinkProps {
href: string
children: React.ReactNode
}

export function Link({ href, children }: LinkProps) {
const basePath = process.env.NODE_ENV === 'production' ? '/swush-me-app' : ''
const fullHref = `${basePath}${href}`

return <NextLink href={fullHref}>{children}</NextLink>
}

0 comments on commit e9f726e

Please sign in to comment.