Skip to content

Commit

Permalink
Redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
beming-dev committed Jan 14, 2025
1 parent 448cde1 commit 5383b85
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,32 @@ const withPWA = require("next-pwa")({

// eslint-disable-next-line @typescript-eslint/no-var-requires
const baseNextConfig = {
// async redirects() {
// return [
// {
// source: "/:path*",
// has: [
// {
// type: "host",
// value: "studyabout.herokuapp.com",
// },
// ],
// destination: "https://about-front.kro.kr/:path*",
// permanent: true,
// },
// {
// source: "/:path*",
// has: [
// {
// type: "host",
// value: "about-front.kro.kr",
// },
// ],
// destination: "/:path*",
// permanent: false, // 기존 요청 유지
// },
// ];
// },
async redirects() {
return [
{
source: "/:path*",
has: [
{
type: "host",
value: "studyabout.herokuapp.com",
},
],
destination: "https://about-front.kro.kr/:path*",
permanent: true,
},
{
source: "/:path*",
has: [
{
type: "host",
value: "about-front.kro.kr",
},
],
destination: "/:path*",
permanent: false, // 기존 요청 유지
},
];
},

env: {
NEXT_PUBLIC_KAKAO_CLIENT_ID: process.env.NEXT_PUBLIC_KAKAO_CLIENT_ID,
Expand Down

0 comments on commit 5383b85

Please sign in to comment.