Merge pull request #958 from abernier/pages
Pages custom Actions workflow
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user