diff --git a/src/pages/PreviewPage.tsx b/src/pages/PreviewPage.tsx index 1a3c74e..0806cb5 100644 --- a/src/pages/PreviewPage.tsx +++ b/src/pages/PreviewPage.tsx @@ -56,7 +56,7 @@ const PreviewPage = () => { const handleSubmit = async () => { try { await axios.post( - 'http://nubble-backend-eb-1-env.eba-f5sb82hp.ap-northeast-2.elasticbeanstalk.com/posts', + `${import.meta.env.VITE_NUBBLE_SERVER}/posts`, { title: markdownTitle, content: markdownContent,