diff --git a/frontend/.env.example b/frontend/.env.example index d79b56559..2303ec6c4 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -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 diff --git a/frontend/src/bundles/home/helpers/create-url-token.ts b/frontend/src/bundles/home/helpers/create-url-token.ts index fc31d5e07..a4d778936 100644 --- a/frontend/src/bundles/home/helpers/create-url-token.ts +++ b/frontend/src/bundles/home/helpers/create-url-token.ts @@ -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}`; }; diff --git a/frontend/src/framework/config/base-config.package.ts b/frontend/src/framework/config/base-config.package.ts index 56ba31483..a4a408ea2 100644 --- a/frontend/src/framework/config/base-config.package.ts +++ b/frontend/src/framework/config/base-config.package.ts @@ -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, }, }; }