new pages workflow

This commit is contained in:
Antoine BERNIER
2024-07-07 17:29:51 +02:00
parent a2fde6dc7e
commit efe4d12986
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