Skip to content

Commit faa974c

Browse files
author
luguellis
committed
feat: adding redirect for next version
1 parent a072fcb commit faa974c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

next.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ const config = {
141141
destination: `/llms/manual/${process.env.VERSION_LATEST}/:file*`,
142142
permanent: false,
143143
},
144+
{
145+
source: "/llms/manual/next/:file*",
146+
destination: `/llms/manual/${process.env.VERSION_NEXT}/:file*`,
147+
permanent: false,
148+
},
144149
];
145150
},
146151
};

public/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
/docs/manual/next/:slug* /docs/manual/v12.0.0/:slug* 307
1414

1515
/llms/manual/latest/:file* /llms/manual/v11.0.0/:file* 307
16+
/llms/manual/next/:file* /llms/manual/v12.0.0/:file* 307

0 commit comments

Comments
 (0)