Merge pull request #958 from abernier/pages

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

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