-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
51 lines (49 loc) · 1.95 KB
/
Copy pathnext.config.ts
File metadata and controls
51 lines (49 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
agentRules: false, // Shared framework guidance lives in docs/PROJECT_INSTRUCTIONS.md.
images: {
remotePatterns: [
{
protocol: "https",
hostname: "pawkklvezvrmtpqbztwb.supabase.co",
},
{
protocol: "https",
hostname: "picsum.photos",
},
{
protocol: "https",
hostname: "placekitten.com",
},
],
},
typescript: {
// Was true. A type error that reaches production as a broken page costs more
// than a failed build. Flipped during the Next 16 upgrade so the migration
// could not hide behind a green deploy.
ignoreBuildErrors: false,
},
sassOptions: {
quietDeps: true,
// Every one of these fires inside Bootstrap 5.3's own source, which we
// cannot fix. quietDeps alone does not catch them: public/scss/bootstrap.scss
// reaches Bootstrap by relative path (../../node_modules/...), so Sass counts
// it as our source rather than a dependency.
// `import` is now needed ONLY for Bootstrap: public/scss has been migrated
// to @use, and removing this entry still leaves 11 warnings, all from
// Bootstrap's own internals. Drop it when Bootstrap stops using @import.
silenceDeprecations: ["import", "global-builtin", "color-functions", "if-function"],
},
async redirects() {
return [
// Legacy HTML URLs → clean routes
{ source: '/index.html', destination: '/', permanent: true },
{ source: '/gender-reveal.html', destination: '/gender-reveal', permanent: true },
{ source: '/my-journey/birthday/birthday.html', destination: '/my-journey/birthday', permanent: true },
{ source: '/my-journey/first-year/my-first-year.html', destination: '/my-journey/first-year', permanent: true },
// Old about page → home
{ source: '/about/genealogy', destination: '/', permanent: true },
]
},
};
export default nextConfig;