Skip to content
Snippets Groups Projects
Verified Commit 958b97a8 authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Load API URL from env variable and restructure gitlab CI

#2
parent 4967e4e5
No related branches found
No related tags found
2 merge requests!22Version 1.0.0,!1HTTP Client and Login
image: node:16
cache:
paths:
- dist
- node_modules
stages:
- prepare
- test
- build
prepare:
stage: prepare
script:
- npm install
before_script:
- npm --version # For debugging
- npm install
lint:
stage: test
needs:
- prepare
script:
- npm run lint
- npm run type-check
build:
stage: build
needs:
- prepare
script:
- npm run build-only
artifacts:
......
......@@ -19,7 +19,7 @@ export type OpenAPIConfig = {
};
export const OpenAPI: OpenAPIConfig = {
BASE: 'http://localhost:9999/api',
BASE: import.meta.env.VITE_API_BASE_URL != null ? import.meta.env.VITE_API_BASE_URL : 'http://localhost:9999/api',
VERSION: '1.0.0',
WITH_CREDENTIALS: false,
CREDENTIALS: 'include',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment