Skip to content

Commit

Permalink
use relative authority
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Dec 6, 2023
1 parent 23a2ec9 commit 4435248
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/Shared/Services/Login.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class LoginService {
private readonly authCredentials: AuthCredentials,
private readonly settings: SettingsService,
) {
this.authority = process.env.CRYOSTAT_AUTHORITY || '';
this.authority = process.env.CRYOSTAT_AUTHORITY || './';
this.token.next(this.getCacheItem(this.TOKEN_KEY));
this.username.next(this.getCacheItem(this.USER_KEY));
this.authMethod.next(this.getCacheItem(this.AUTH_METHOD_KEY) as AuthMethod);
Expand Down
5 changes: 2 additions & 3 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');

const BG_IMAGES_DIRNAME = 'bgimages';
const ASSET_PATH = process.env.ASSET_PATH || '/';

module.exports = (env) => {
return {
Expand Down Expand Up @@ -154,8 +153,8 @@ module.exports = (env) => {
chunkFilename: '[id].[contenthash].bundle.js', // lazy-load modules
hashFunction: "xxhash64",
path: path.resolve(__dirname, 'dist'),
publicPath: ASSET_PATH,
clean: true
clean: true,
publicPath: './',
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx'],
Expand Down

0 comments on commit 4435248

Please sign in to comment.