Rename ssr to website, website to spa, add spa nginx config

This commit is contained in:
Your Name committed 2026-06-03 09:38:15 +07:00
1 parent fc6bf0218e
commit 8514342c2f
103 files changed
+801 -768

No files matched your search

+4 -4
View File
@@ -1,12 +1,12 @@
"use client";
import { useEffect } from 'react'
import { useLocation } from 'react-router-dom'
import { usePathname } from 'next/navigation'
/**
* Scrolls window to top on every route change.
* Place this inside <BrowserRouter> so it has access to location context.
* Scrolls window to top on every route change (Next.js version).
*/
export default function ScrollToTop() {
const { pathname } = useLocation()
const pathname = usePathname()
useEffect(() => {
window.scrollTo({ top: 0, behavior: 'instant' })