refactor. pre-deploy

This commit is contained in:
2025-10-29 20:22:35 +09:00
parent 18497d4343
commit 367e1c932e
113 changed files with 8245 additions and 67 deletions

View File

@@ -23,7 +23,7 @@ export function LayoutWrapper({ children }: { children: ReactNode }) {
useEffect(() => {
const token = localStorage.getItem('token')
if (token) {
fetch(`${process.env.NEXT_PUBLIC_API_URL}/api/auth/user/`, {
fetch('/api/auth/user', {
headers: { Authorization: `Bearer ${token}` },
})
.then(res => {
@@ -82,7 +82,7 @@ export function LayoutWrapper({ children }: { children: ReactNode }) {
src={
user.avatar.startsWith('http')
? user.avatar
: `${process.env.NEXT_PUBLIC_API_URL}${user.avatar}`
: `http://localhost:8000${user.avatar}`
}
alt="Avatar"
width={32}