Skip to content

Commit c526ac8

Browse files
authored
Merge pull request #71 from simonyiszk/termek-sch
feat: redirect termek.sch domain on load
2 parents fe88610 + 59a3b18 commit c526ac8

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

next.config.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@ const withNextIntl = require("next-intl/plugin")();
33

44
/** @type {import('next').NextConfig} */
55
const nextConfig = {
6+
async redirects() {
7+
return [
8+
{
9+
source: "/:path*",
10+
has: [
11+
{
12+
type: "host",
13+
value: "termek.sch.bme.hu",
14+
},
15+
],
16+
destination: "/berles",
17+
permanent: true,
18+
},
19+
];
20+
},
621
pageExtensions: ["ts", "tsx", "md"],
722
reactStrictMode: true,
823
swcMinify: true,
@@ -28,5 +43,4 @@ const nextConfig = {
2843
},
2944
};
3045

31-
3246
module.exports = withNextIntl(nextConfig);

0 commit comments

Comments
 (0)