Init NextJS #4

Merged
imnyang merged 11 commits from nextjs into main 2025-10-23 20:20:18 +09:00
Showing only changes of commit ab8c576c6c - Show all commits

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

암냥 2025-10-22 22:35:55 +09:00

View file

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