Skip to content

Commit

Permalink
fix: redirect location
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxtuneLee committed Jul 17, 2024
1 parent af0ec42 commit c758d48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions app/(tourist)/login/loginStep1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ const list = [
describe: "Microsoft",
icon: <MsIcon />,
},
{
target: "http://10.11.12.13:8080/api/v1/login/lark",
describe: "Feishu",
icon: <LarkIcon />,
},
];

const LoginStep1 = () => {
Expand Down Expand Up @@ -143,7 +138,7 @@ const LoginStep1 = () => {
// onClick={() => {
// message.warning("暂未开放");
// }}
href="/apis/login/lark?redirect_url=http://localhost:3000/callback/feishu"
href={`/apis/login/lark?redirect_url=${window.location.protocol}//${window.location.host}/callback/feishu`}
className={classNames(styles.anchor)}
>
SAST 飞书登录
Expand Down
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const nextConfig = {
return [
{
source: "/apis/:slug*",
destination: `http://10.11.12.13:8080/api/v1/:slug*`,
destination: `http://81.68.225.220:8080/api/v1/:slug*`,
},
];
},
Expand Down

0 comments on commit c758d48

Please sign in to comment.