Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default API URL in the webap #860

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
change default API URL in the webapp from localhost:5001 to localhost…
…:5000
  • Loading branch information
jdbocarsly committed Aug 28, 2024
commit 87417b7f056f5ee346e461f11553aea772f44189
3 changes: 2 additions & 1 deletion webapp/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import { defineConfig } from "cypress";
export default defineConfig({
projectId: "4kqx5i",
e2e: {
// these defaults can be overwritten by environment variables in .env.test_e2e
baseUrl: "http://localhost:8080",
apiUrl: "http://localhost:5001",
apiUrl: "http://localhost:5000",
experimentalMemoryManagement: true,
defaultCommandTimeout: 10000,
},
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import CellCreateModalAddon from "@/components/itemCreateModalAddons/CellCreateM

// Look for values set in .env file. Use defaults if `null` is not explicitly handled elsewhere in the code.
export const API_URL =
process.env.VUE_APP_API_URL != null ? process.env.VUE_APP_API_URL : "http://localhost:5001";
process.env.VUE_APP_API_URL != null ? process.env.VUE_APP_API_URL : "http://localhost:5000";
export const API_TOKEN = process.env.VUE_APP_API_TOKEN;

export const LOGO_URL = process.env.VUE_APP_LOGO_URL;
Expand Down
Loading