refactor(timeline): replace client-side hash navigation with server action createPost that redirects to /#timeline

This commit is contained in:
암냥 2025-10-22 22:35:55 +09:00
commit ab8c576c6c

View file

@ -1,3 +1,6 @@
export const timeline = () => { 'use server'
window.location.hash = '#timeline'; import { redirect } from 'next/navigation'
};
export async function createPost(id: string) {
redirect(`/#timeline`)
}