Skip to content

Commit

Permalink
Remove redundant addBasePath (#6425)
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus authored Jan 27, 2025
1 parent 38eaa1d commit 4fc54c6
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ date: 2024-10-11
authors: [dimitri]
---

import { addBasePath } from 'next/dist/client/add-base-path'

export function Caption({ children }) {
return <p className="text-center text-sm italic">{children}</p>
}
Expand All @@ -16,7 +14,7 @@ export function Video({ src, alt }) {
return (
<>
<video autoPlay="autoplay" loop muted playsInline>
<source src={addBasePath(src)} type="video/mp4" />
<source src={src} type="video/mp4" />
Your browser does not support the video tag.
</video>
<Caption>{alt}</Caption>
Expand Down
74 changes: 38 additions & 36 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4fc54c6

Please sign in to comment.