선생님 즐거운 추석보내세요..
"do-good-evening.appspot.com/images/3ac768b4-e9a7-42a6-b6f8-4364a80bd22d_노을1.jpg"
이렇게 파이어스토어 데이터베이스에 저장해놨는데,
그러면 불러올때는 어떻게 불어와야할까요?
nextjs에서
next.config.js 설정 이렇게해줬고,
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
appDir: true,
},
images: {
domains: ['firebasestorage.googleapis.com'],
},
};
module.exports = nextConfig;
{posts.map((data, index) => (
<div className='swiper-wrapper'>
{/* 포스팅 사진 */}
< img src={data.imgUrl} alt='이미지' />
...
}
이렇게 불러와주고있는데 여전히 엑박과 400에러가뜨고있습니다.
3ac768b4-e9a7-42a6-b6f8-4364a80bd22d_%EB%85%B8%EC%9D%841.jpg:1 GET http://localhost:3000/do-good-evening.appspot.com/images/3ac768b4-e9a7-42a6-b6f8-4364a80bd22d_%EB%85%B8%EC%9D%841.jpg 404 (Not Found)
data.imgUrl은
"do-good-evening.appspot.com/images/3ac768b4-e9a7-42a6-b6f8-4364a80bd22d_노을1.jpg"
이렇게되어있습니다.