diff --git a/src/app/timeline/route.ts b/src/app/timeline/route.ts index 0daf1c8..7e3a755 100644 --- a/src/app/timeline/route.ts +++ b/src/app/timeline/route.ts @@ -1,3 +1,6 @@ -export const timeline = () => { - window.location.hash = '#timeline'; -}; \ No newline at end of file +'use server' +import { redirect } from 'next/navigation' + +export async function createPost(id: string) { + redirect(`/#timeline`) +} \ No newline at end of file