Skip to content

Commit 87db691

Browse files
committed
update api url
1 parent c1b8884 commit 87db691

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/small-horses-fry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"htmldocs": patch
3+
---
4+
5+
update api url

packages/htmldocs/src/cli/commands/publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const publish = async (documentPath: string) => {
6868

6969
try {
7070
logger.debug("Sending upload request to server");
71-
const response = await fetch("http://localhost:3000/api/documents/upload", {
71+
const response = await fetch(`${process.env.API_URL}/api/documents/upload`, {
7272
method: "POST",
7373
headers: {
7474
"Authorization": `Bearer ${api_key}`,

0 commit comments

Comments
 (0)