diff --git a/src/assets/components/post/Post.tsx b/src/assets/components/post/Post.tsx index 6ca4b59f..c8ac8f6e 100644 --- a/src/assets/components/post/Post.tsx +++ b/src/assets/components/post/Post.tsx @@ -34,7 +34,7 @@ export default function Post({ if (onPostClick) { onPostClick(); } else { - navigate(`/post-content/${postId}`); + navigate(`/post/${postId}`); } }; @@ -50,7 +50,7 @@ export default function Post({ try { const { data } = await instance.get(`/api/post/${postId}`); - navigate(`/post-content/${postId}`, { + navigate(`/post/${postId}`, { state: { post: data }, }); } catch { diff --git a/vercel.json b/vercel.json new file mode 100644 index 00000000..0d199b2d --- /dev/null +++ b/vercel.json @@ -0,0 +1,5 @@ +{ + "rewrites": [ + { "source": "/(.*)", "destination": "/index.html" } + ] +}