Spaces:
Sleeping
Sleeping
Esteves Enzo
commited on
Commit
•
40c26ae
1
Parent(s):
6294700
add redirect to first route
Browse files- next.config.js +9 -1
next.config.js
CHANGED
@@ -4,7 +4,15 @@ const nextConfig = {
|
|
4 |
serverActions: true,
|
5 |
serverComponentsExternalPackages: ['sharp', 'onnxruntime-node'],
|
6 |
},
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
}
|
9 |
|
10 |
module.exports = nextConfig
|
|
|
4 |
serverActions: true,
|
5 |
serverComponentsExternalPackages: ['sharp', 'onnxruntime-node'],
|
6 |
},
|
7 |
+
redirects: async () => {
|
8 |
+
return [
|
9 |
+
{
|
10 |
+
source: '/',
|
11 |
+
destination: '/search/0',
|
12 |
+
permanent: true,
|
13 |
+
},
|
14 |
+
]
|
15 |
+
}
|
16 |
}
|
17 |
|
18 |
module.exports = nextConfig
|