-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
24 lines (22 loc) · 824 Bytes
/
Copy pathnext.config.js
File metadata and controls
24 lines (22 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverComponentsExternalPackages: ["@libsql/client"],
},
// Static export not used — Next.js App Router with serverless functions
// Hosted on Vercel free tier (hobby plan)
// ── SEO: permanent 301 redirect from legacy /opportunity/[id] URL ──────────
// The canonical URL is now /opportunities/[id] (plural).
// Google transfers link equity on 301 redirects, so any indexed /opportunity/
// pages will eventually point to the new canonical URL.
async redirects() {
return [
{
source: "/opportunity/:id",
destination: "/opportunities/:id",
permanent: true, // 301 — tells Google to transfer ranking signals
},
];
},
};
module.exports = nextConfig;