📜  如何在 next.js 中添加 img - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:33.193000             🧑  作者: Mango

代码示例1
yarn add next-images

// add in next.config.js
const withImages = require('next-images')
module.exports = withImages()

//where the image should go

//or
import img from './my-image.jpg';
export default () =>