summaryrefslogtreecommitdiff
path: root/apps/web/src/app/projects
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-07-16 22:47:17 +0200
committerMaze Winther <mazewinther@gmail.com>2025-07-16 22:47:17 +0200
commitaccad442f48f9d1254d889054dfbce81ea6acda0 (patch)
tree613bfe35104fbc2f93e86abaeb686a2e8f7dda40 /apps/web/src/app/projects
parente7344d91206e57a8e14bb49665a3c8d84459722d (diff)
downloadopencut-accad442f48f9d1254d889054dfbce81ea6acda0.tar.gz
cleanup
Diffstat (limited to 'apps/web/src/app/projects')
-rw-r--r--apps/web/src/app/projects/page.tsx12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/web/src/app/projects/page.tsx b/apps/web/src/app/projects/page.tsx
index 499b999a..9fcb025b 100644
--- a/apps/web/src/app/projects/page.tsx
+++ b/apps/web/src/app/projects/page.tsx
@@ -1,7 +1,8 @@
-"use client";
+"use client"
+import { redirect } from "next/navigation";
import Link from "next/link";
-import { useState } from "react";
+import React, { useState } from "react";
import { Button } from "@/components/ui/button";
import { Card, CardContent } from "@/components/ui/card";
import { Checkbox } from "@/components/ui/checkbox";
@@ -28,8 +29,15 @@ import { useProjectStore } from "@/stores/project-store";
import { useRouter } from "next/navigation";
import { DeleteProjectDialog } from "@/components/delete-project-dialog";
import { RenameProjectDialog } from "@/components/rename-project-dialog";
+import { toast } from "sonner";
export default function ProjectsPage() {
+
+ if (process.env.NODE_ENV !== "development") {
+ toast.error("You are not allowed to access this page");
+ redirect("/");
+ }
+
const {
createNewProject,
savedProjects,