Merge pull request #958 from abernier/pages

Pages custom Actions workflow
This commit is contained in:
Timothy authored and GitHub committed 2024-07-10 21:59:32 +08:00
commit 13563ff8c5
5 files changed
+95 -121

No files matched your search

+5 -1
View File
@@ -1,5 +1,9 @@
import NextImage, { ImageProps } from 'next/image'
const Image = ({ ...rest }: ImageProps) => <NextImage {...rest} />
const basePath = process.env.BASE_PATH
const Image = ({ src, ...rest }: ImageProps) => (
<NextImage src={`${basePath || ''}${src}`} {...rest} />
)
export default Image