update hardcoded paths

This commit is contained in:
jeremyphilemon 2026-02-23 08:26:37 -08:00
parent 0c8128cd62
commit 72597d6f68
9 changed files with 23 additions and 18 deletions

View file

@ -149,7 +149,7 @@ function PureArtifact({
}
if (currentDocument.content !== updatedContent) {
await fetch(`/api/document?id=${artifact.documentId}`, {
await fetch(`${process.env.NEXT_PUBLIC_BASE_PATH ?? ""}/api/document?id=${artifact.documentId}`, {
method: "POST",
body: JSON.stringify({
title: artifact.title,