🐛(app-desk) force redirect on resources/[id]

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

So we redirect thanks to ngnix when we see that
a resource page is not found.
This commit is contained in:
Anthony LC
2024-04-19 13:29:18 +02:00
committed by Anthony LC
parent b2cc789665
commit 89aa048fc1
3 changed files with 15 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
trailingSlash: true,
images: {
unoptimized: true,
},