Skip to content

Commit

Permalink
OV-377: * change .env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
stefano-lacorazza committed Sep 27, 2024
1 parent b8e9f78 commit 34e1084
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ VITE_APP_SOCKET_ORIGIN_URL=/socket.io
#
# DEPLOYMENT
#
PUBLIC_URL=http://bsa-2024-outreachvids-dev.eu-north-1.elasticbeanstalk.com
VITE_APP_PUBLIC_URL=http://localhost:3000

1 change: 0 additions & 1 deletion frontend/src/bundles/home/helpers/create-url-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { config } from '~/framework/config/config.js';

const createVideoUrl = (jwtToken: string): string => {
const baseUrl = config.ENV.DEPLOYMENT.PUBLIC_URL;

return `${baseUrl}/preview/${jwtToken}`;
};

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/framework/config/base-config.package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class BaseConfig implements Config {
] as string,
},
DEPLOYMENT: {
PUBLIC_URL: import.meta.env['PUBLIC_URL'] as string,
PUBLIC_URL: import.meta.env['VITE_APP_PUBLIC_URL'] as string,
},
};
}
Expand Down

0 comments on commit 34e1084

Please sign in to comment.