mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
hardcode redir for vercel deploy
This commit is contained in:
@ -16,7 +16,7 @@ function useRedirectToLoginIfUnauthenticated() {
|
||||
router.replace({
|
||||
pathname: "/login",
|
||||
query: {
|
||||
callbackUrl: `http://localhost:3000${location.pathname}${location.search}`,
|
||||
callbackUrl: `https://app.documenso.com/${location.pathname}${location.search}`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ export default function Login() {
|
||||
|
||||
// If not absolute URL, make it absolute
|
||||
if (!/^https?:\/\//.test(callbackUrl)) {
|
||||
callbackUrl = `http://localhost:3000/${callbackUrl}`;
|
||||
callbackUrl = `https://app.documenso.com/${callbackUrl}`;
|
||||
}
|
||||
|
||||
const onSubmit = async (values: LoginValues) => {
|
||||
|
||||
@ -43,7 +43,7 @@ export default function Signup() {
|
||||
.then(async () => {
|
||||
await signIn<"credentials">("credentials", {
|
||||
...data,
|
||||
callbackUrl: "http://localhost:3000/dashboard",
|
||||
callbackUrl: "https://app.documenso.com/dashboard",
|
||||
});
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
Reference in New Issue
Block a user