본문 바로가기

Next.js/기초

[TIL] nextJS에 이미지 url 넣기

/** @type {import('next').NextConfig} */

const nextConfig = {
	images: {
		remotePatterns: [
			{
				protocol: 'https',
				hostname: 'i.example',
			},
		],
	},
};

export default nextConfig;

 

이미지가 말썽..

next.config.mjs 에 찾아서 들어가보니 해결..

'Next.js > 기초' 카테고리의 다른 글

[TIL] changeEvent  (0) 2024.03.21
[TIL] TailwindCSS 사용하기  (0) 2024.03.20
[TIL] Next.JS에서 제공하는 4가지 렌더링 기법  (0) 2024.03.14
[TIL] Next.js에서 Routing  (0) 2024.03.13
[TIL] Next.js 란?  (0) 2024.03.11