🐛(app-desk) force redirect on teams/[id]
When we use the static mode, Next.js want that we build our team pages at build time. But we can't do that because users can create a team at runtime. So we redirect thanks to ngnix when we see that a team page is not found.
This commit is contained in:
@@ -8,6 +8,10 @@ server {
|
|||||||
try_files $uri index.html $uri/ =404;
|
try_files $uri index.html $uri/ =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /teams/ {
|
||||||
|
error_page 404 /teams/[id]/;
|
||||||
|
}
|
||||||
|
|
||||||
error_page 404 /404.html;
|
error_page 404 /404.html;
|
||||||
location = /404.html {
|
location = /404.html {
|
||||||
internal;
|
internal;
|
||||||
|
|||||||
Reference in New Issue
Block a user