summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/CONTRIBUTING.md5
-rw-r--r--apps/web/src/hooks/auth/useLogin.ts4
2 files changed, 7 insertions, 2 deletions
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index b9e22759..989278c3 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -10,6 +10,11 @@ Thank you for your interest in contributing to OpenCut! This document provides g
4. Install dependencies: `bun install`
5. Start the development server: `bun run dev`
+> **Note:** If you see an error like `Unsupported URL Type "workspace:*"` when running `npm install`, you have two options:
+>
+> 1. Upgrade to a recent npm version (v9 or later), which has full workspace protocol support.
+> 2. Use an alternative package manager such as **bun** or **pnpm**.
+
## Development Setup
### Prerequisites
diff --git a/apps/web/src/hooks/auth/useLogin.ts b/apps/web/src/hooks/auth/useLogin.ts
index 3737deb3..12eddcbf 100644
--- a/apps/web/src/hooks/auth/useLogin.ts
+++ b/apps/web/src/hooks/auth/useLogin.ts
@@ -25,7 +25,7 @@ export function useLogin() {
return;
}
- router.push("/editor");
+ router.push("/projects");
}, [router, email, password]);
const handleGoogleLogin = async () => {
@@ -35,7 +35,7 @@ export function useLogin() {
try {
await signIn.social({
provider: "google",
- callbackURL: "/editor",
+ callbackURL: "/projects",
});
} catch (error) {
setError("Failed to sign in with Google. Please try again.");