hardcode redir for vercel deploy

This commit is contained in:
Timur Ercan
2023-01-14 15:24:32 +01:00
parent cc57b90295
commit 0258f8c505
3 changed files with 3 additions and 3 deletions

View File

@ -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}`,
},
});
}

View File

@ -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) => {

View File

@ -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) => {