Skip to content

Commit

Permalink
[#28] chore: fetch 주소 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yb3143 committed Jun 18, 2024
1 parent 927095b commit 71771de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/compare/input/CompareInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ProductSelector: React.FC<ProductSelectorProps> = ({ onCompare }) => {

const fetchAllProducts = async () => {
try {
const response = await fetch(`https://mogazoa-api.vercel.app/4-20/products`);
const response = await fetch(`${process.env.NEXT_PUBLIC_BASE_URL}/products`);
const data = await response.json();
const products: Product[] = data.list.map((item: Product) => ({
id: item.id,
Expand Down

0 comments on commit 71771de

Please sign in to comment.