We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1b8884 commit 87db691Copy full SHA for 87db691
.changeset/small-horses-fry.md
@@ -0,0 +1,5 @@
1
+---
2
+"htmldocs": patch
3
4
+
5
+update api url
packages/htmldocs/src/cli/commands/publish.ts
@@ -68,7 +68,7 @@ export const publish = async (documentPath: string) => {
68
69
try {
70
logger.debug("Sending upload request to server");
71
- const response = await fetch("http://localhost:3000/api/documents/upload", {
+ const response = await fetch(`${process.env.API_URL}/api/documents/upload`, {
72
method: "POST",
73
headers: {
74
"Authorization": `Bearer ${api_key}`,
0 commit comments