Skip to content

Commit de60268

Browse files
authored
remove [tenantId]/projects/[projectId]/page.tsx file in favour of redirect in next.config file (#1374)
* remove `[tenantId]/projects/[projectId]/page.tsx` file in favour of redirect in `next.config` file * remove `[tenantId]/projects/[projectId]/page.tsx` file in favour of redirect in `next.config` file
1 parent 0833112 commit de60268

File tree

3 files changed

+14
-18
lines changed

3 files changed

+14
-18
lines changed

.changeset/good-toys-lay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@inkeep/agents-manage-ui": minor
3+
---
4+
5+
remove `[tenantId]/projects/[projectId]/page.tsx` file in favour of redirect in `next.config` file

agents-manage-ui/next.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ const nextConfig: NextConfig = {
1818
NEXT_PUBLIC_CI: process.env.CI,
1919
},
2020
output: 'standalone',
21+
redirects() {
22+
return [
23+
{
24+
source: '/:tenantId/projects/:projectId',
25+
destination: '/:tenantId/projects/:projectId/agents',
26+
permanent: false,
27+
},
28+
];
29+
},
2130
turbopack: {
2231
rules: {
2332
'./**/icons/*.svg': {

agents-manage-ui/src/app/[tenantId]/projects/[projectId]/page.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)