Apply suggestions from code review of branch no-dev-tools
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
This commit is contained in:
parent
a31969d228
commit
20e6cbc1a2
2 changed files with 4 additions and 4 deletions
|
|
@ -17,7 +17,7 @@ export default defineConfig(({ command, mode }) => {
|
|||
if (env.VITE_API_TARGET === "local") {
|
||||
target = "http://localhost:5000";
|
||||
} else if (env.VITE_API_TARGET === "microscope") {
|
||||
target = env.VITE_MICROSCPOPE_HOST || "http://microscope.local:5000";
|
||||
target = env.VITE_MICROSCOPE_HOST || "http://microscope.local:5000";
|
||||
} else {
|
||||
throw new Error(`Invalid VITE_API_TARGET: ${env.VITE_API_TARGET}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue