upd
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
|
||||
# production
|
||||
/build
|
||||
/dist
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
|
||||
+11
-2
@@ -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,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 />
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user