diff --git a/.gitignore b/.gitignore
index 8585166..119c350 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,6 +5,7 @@
/.pnp
.pnp.js
.yarn/install-state.gz
+/src/app/(client)
# testing
/coverage
diff --git a/src/app/demo/checkout/page.tsx b/src/app/demo/checkout/page.tsx
index 88158ca..0da1953 100644
--- a/src/app/demo/checkout/page.tsx
+++ b/src/app/demo/checkout/page.tsx
@@ -22,7 +22,7 @@ export default function Checkout() {
useEffect(() => {
if (cart.length === 0) {
- router.push('/');
+ router.push('/demo');
}
if (user) {
setEmail(user.email);
@@ -64,7 +64,7 @@ export default function Checkout() {
setError(null);
try {
await createOrder(user.userId, cart).then((order) => {
- router.push(`/checkout/success/${order.orderId}`);
+ router.push(`/demo/checkout/success/${order.orderId}`);
});
} catch (err) {
diff --git a/src/app/demo/page.tsx b/src/app/demo/page.tsx
index 6ec4793..36bd9b9 100644
--- a/src/app/demo/page.tsx
+++ b/src/app/demo/page.tsx
@@ -20,7 +20,7 @@ export default function Home() {
}, []);
const handleCheckout = () => {
- router.push('/checkout');
+ router.push('/demo/checkout');
};
return (
@@ -32,7 +32,7 @@ export default function Home() {
Welcome, {user?.firstName}
) : (