This commit is contained in:
2026-01-22 14:43:14 +05:00
parent 92f88e6f00
commit 166af639d4
4 changed files with 14 additions and 5 deletions
+1
View File
@@ -15,6 +15,7 @@
# production
/build
/dist
# misc
.DS_Store
+11 -2
View File
@@ -18,9 +18,18 @@ server {
# index.html fallback
location / {
# try_files $uri $uri/ /index.html;
try_files $uri $uri.html $uri/ /index.html;
# Убираем trailing slash и редиректим
rewrite ^/(.*)/$ /$1 permanent;
# Пробуем найти файл, затем с .html, затем 404
try_files $uri $uri.html /404.html;
}
# Явная обработка 404
# error_page 404 /404.html;
# location = /404.html {
# internal;
# }
location /api {
+1 -2
View File
@@ -1,8 +1,7 @@
import { redirect, RedirectType } from "next/navigation";
import MainLayout from "./(main)/layout";
import { NotFoundPage } from "@/components/pages/NotFoundPage";
export default function Page() {
export default function NotFound() {
return (
<MainLayout>
<NotFoundPage />
+1 -1
View File
@@ -17,7 +17,7 @@ export function StoriesButton() {
return (
<div className="flex items-center mx-auto">
<div className="flex items-center">
{stories?.slice(-3).map(({ id, text, preview }, index) => (
{stories?.slice(0,3).map(({ id, text, preview }, index) => (
<button
onClick={() => setModal(<StoriesModal startIndex={index} />)}
className="aspect-square first:translate-x-2 last:-translate-x-2 w-full rounded-full cursor-pointer outline-none"