-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from r-dvl/feature/user-pass-env
Release 0.1.20
- Loading branch information
Showing
112 changed files
with
59 additions
and
4,910 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
VITE_API_URL=https://your.api.url | ||
VITE_USERNAME=admin | ||
VITE_PASSWORD=admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
const apiUrl = 'https://ansible-manager-api.rdvl-server.site'; | ||
var apiUrl; | ||
var username; | ||
var password; | ||
|
||
export default apiUrl; | ||
if (import.meta.env.MODE === "development") { | ||
apiUrl = 'http://localhost:8080'; | ||
username = 'dev'; | ||
password = 'dev'; | ||
} else if (import.meta.env.MODE === "demo") { | ||
apiUrl = 'https://ansible-manager-api.rdvl-server.site'; | ||
username = 'demo'; | ||
password = 'demo'; | ||
} else { | ||
apiUrl = import.meta.env.VITE_API_URL; | ||
username = import.meta.env.VITE_USERNAME; | ||
password = import.meta.env.VITE_PASSWORD; | ||
} | ||
|
||
export { apiUrl, username, password }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ RUN npm install | |
|
||
COPY . . | ||
|
||
RUN npm run build | ||
RUN npm run build:demo | ||
|
||
EXPOSE 3000 | ||
|
||
|
Oops, something went wrong.