Skip to content

Commit

Permalink
Merge pull request #71 from simonyiszk/termek-sch
Browse files Browse the repository at this point in the history
feat: redirect termek.sch domain on load
  • Loading branch information
triszt4n authored Jul 6, 2024
2 parents fe88610 + 59a3b18 commit c526ac8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@ const withNextIntl = require("next-intl/plugin")();

/** @type {import('next').NextConfig} */
const nextConfig = {
async redirects() {
return [
{
source: "/:path*",
has: [
{
type: "host",
value: "termek.sch.bme.hu",
},
],
destination: "/berles",
permanent: true,
},
];
},
pageExtensions: ["ts", "tsx", "md"],
reactStrictMode: true,
swcMinify: true,
Expand All @@ -28,5 +43,4 @@ const nextConfig = {
},
};


module.exports = withNextIntl(nextConfig);

0 comments on commit c526ac8

Please sign in to comment.