Skip to content

Commit

Permalink
fix(web): default base API URL for development
Browse files Browse the repository at this point in the history
  • Loading branch information
kylejb committed Jul 28, 2024
1 parent 84b6df6 commit eb6a7c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const NODE_ENV = {
PRODUCTION: 'production',
};

const BASE_API_URL = import.meta.env.DEV ? 'http://127.0.0.1:8888' : 'https://clairbuoyant.live';
const BASE_API_URL = import.meta.env.DEV ? 'http://127.0.0.1:4000' : 'https://clairbuoyant.live';

export const API_VERSION = 'v1';
export const BASE_API_URI = `${BASE_API_URL}/api/${API_VERSION}`;
Expand Down
1 change: 1 addition & 0 deletions web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"baseUrl": "src",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"types": ["node", "vite/client"],
"module": "ESNext",
"outDir": "dist",
"paths": {
Expand Down

0 comments on commit eb6a7c0

Please sign in to comment.