netlify 배포 Document.write()

lovely·2023년 2월 7일
0
post-thumbnail


배포하기 참 힘들다^^

✅ Document.write()
[Violation] Avoid using document.write().
다큐멘트에서 스크립트를 쓰지 말라고 한다!!
한참 찾아봤는데

  const {
    isLoading,
    error,
    data: contact,
  } = useQuery(
    {
      queryKey: ["contact"],
      queryFn: viewContact,
    },
    { staleTime: 1000 * 5 * 10 }
  );

  const { user } = useUserContext();

  if (isLoading) return <p>loading...</p>;
  if (error) return <p>error...</p>;

마지막 두 부분이 문제였던것..!
쿼리쓸때 확인용으로 써놨던것이 배포를 막아두고 있더랬다ㅠㅠㅠ
암튼 지우고 나서 배포했더니 성공!

profile
the best FE (will be..)

0개의 댓글