Skip to content

Commit

Permalink
fix: local webui development
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Mar 27, 2024
1 parent 6d9395f commit 9af692e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webui/src/utils/api.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/**
* Keep this path in sync with `app.json`'s `baseUrl`.
* The base url is disabled when running webui in development, as `baseUrl` is for export only.
*
* @see https://docs.expo.dev/versions/latest/config/app/#baseurl
*/
const baseUrl = '/_expo/atlas';
const baseUrl = __DEV__ ? '' : '/_expo/atlas';

/**
* Fetch data from the API routes, adding the `baseUrl` to all requests.
Expand Down

0 comments on commit 9af692e

Please sign in to comment.