configure local dev api endpoint
This commit is contained in:
parent
69058b8ceb
commit
4446b228d7
5 changed files with 506 additions and 4 deletions
|
|
@ -3,6 +3,7 @@ import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|||
import path from "node:path";
|
||||
|
||||
const DESKTOP_REMOTE_URL = "https://flow.deltaisland.io";
|
||||
const DESKTOP_REMOTE_API_URL = "https://api.flow.deltaisland.io";
|
||||
const DESKTOP_LOCAL_URL = "http://127.0.0.1:3000";
|
||||
const WEB_PORT = 3000;
|
||||
|
||||
|
|
@ -268,7 +269,7 @@ if (!remoteMode) {
|
|||
cmd: ["bun", "run", "dev"],
|
||||
cwd: "apps/web",
|
||||
env: {
|
||||
NEXT_PUBLIC_API_URL: Bun.env.NEXT_PUBLIC_API_URL ?? DESKTOP_REMOTE_URL
|
||||
NEXT_PUBLIC_API_URL: Bun.env.NEXT_PUBLIC_API_URL ?? DESKTOP_REMOTE_API_URL
|
||||
}
|
||||
});
|
||||
await waitForWebPort();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue