🐛(app-desk) force redirect on mail-domains/[slug]

When we use the static mode, Next.js want that we
build our mail-domains pages at build time.
But we can't do that because users can create a
mail at runtime.

So we redirect thanks to ngnix when we see that
a mail page is not found.
This commit is contained in:
Anthony LC
2024-06-27 14:58:48 +02:00
committed by Anthony LC
parent 56df81ef84
commit 0e5cbb1fc8

View File

@@ -12,6 +12,10 @@ server {
error_page 404 /teams/[id]/;
}
location /mail-domains/ {
error_page 404 /mail-domains/[slug]/;
}
error_page 404 /404.html;
location = /404.html {
internal;