new pages workflow

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