There was an error while loading. Please reload this page.
/{tag}
/?tag=${tag}
1 parent 708cd2b commit b91a5dbCopy full SHA for b91a5db
1 file changed
apps/blog/next.config.mjs
@@ -205,13 +205,30 @@ const allowedDevOrigins = (
205
const config = {
206
reactCompiler: true,
207
async redirects() {
208
+ const tagSlugs = [
209
+ "ai",
210
+ "announcement",
211
+ "data-platform",
212
+ "education",
213
+ "orm",
214
+ "prisma-postgres",
215
+ "release",
216
+ "serverless",
217
+ "user-success-story",
218
+ ];
219
+
220
return [
221
{
222
source: "/",
223
destination: "/blog",
224
permanent: false,
225
basePath: false,
226
},
227
+ ...tagSlugs.map((tag) => ({
228
+ source: `/${tag}`,
229
+ destination: `/?tag=${tag}`,
230
+ permanent: true,
231
+ })),
232
];
233
234
async rewrites() {
0 commit comments