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
module.exports = { | |
// ... | |
output: { | |
// required for routing to work properly (https://stackoverflow.com/a/56601922/1142028) | |
publicPath: '/', | |
}, | |
devServer: { | |
// required for routing to work properly (https://stackoverflow.com/a/61715643/1142028) | |
historyApiFallback: true, | |
// ... |
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
# Requires jq to be installed --> https://stedolan.github.io/jq/ | |
# Create a suitable client supporting "Direct Auth" for your keycloak instance and remember its client credentials (id and secret) | |
# also see https://developers.redhat.com/blog/2020/01/29/api-login-and-jwt-token-generation-using-keycloak/ | |
CLIENT_ID=test | |
CLIENT_SECRET=test-secret | |
USERNAME=admin | |
PASSWORD=supersecure | |
KEYCLOAK_URL=https://your.keycloak.com | |
REALM_NAME=realm |
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
# assuming we've got an existing (annotated) git tag like | |
# git tag -a v1.2.3 | |
$sdkVersion = (git describe --all --match "v*").Split("-")[0].Replace("tags/", "").Replace("v", "") | |
Write-Output $gitVersion # outputs: 1.2.3 |
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
# assuming we've got an existing (annotated) git tag like | |
# git tag -a v1.2.3 | |
gitVersion=$(git describe --all --match "v*" --abbrev=0 | cut -c 2-) | |
echo $gitVersion # outputs: 1.2.3 |