feature: support serving from subpath (#33)

Co-authored-by: Karthik T <karthikt.holmes+github@gmail.com>
This commit is contained in:
Henry Dollman
2025-02-04 21:22:40 -05:00
parent ce171cf375
commit 58085bf300
17 changed files with 118 additions and 54 deletions

View File

@@ -18,7 +18,7 @@ import { Copy, PlusIcon } from "lucide-react"
import { useState, useRef, MutableRefObject } from "react"
import { useStore } from "@nanostores/react"
import { cn, copyToClipboard, isReadOnlyUser } from "@/lib/utils"
import { navigate } from "./router"
import { basePath, navigate } from "./router"
import { Trans } from "@lingui/macro"
import { i18n } from "@lingui/core"
@@ -60,7 +60,7 @@ export function AddSystemButton({ className }: { className?: string }) {
try {
setOpen(false)
await pb.collection("systems").create(data)
navigate("/")
navigate(basePath)
// console.log(record)
} catch (e) {
console.log(e)