update hardcoded paths
This commit is contained in:
parent
0c8128cd62
commit
72597d6f68
9 changed files with 23 additions and 18 deletions
|
|
@ -41,7 +41,7 @@ export function AppSidebar({ user }: { user: User | undefined }) {
|
|||
const [showDeleteAllDialog, setShowDeleteAllDialog] = useState(false);
|
||||
|
||||
const handleDeleteAll = () => {
|
||||
const deletePromise = fetch("/api/history", {
|
||||
const deletePromise = fetch(`${process.env.NEXT_PUBLIC_BASE_PATH ?? ""}/api/history`, {
|
||||
method: "DELETE",
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue