Skip to content

Commit

Permalink
test clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroxis-xs committed Sep 30, 2024
1 parent fac1f89 commit e9d91c7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
frontend:
image: xeroxisxs/eduquest-frontend-nextjs:latest
ports:
- "3000:80"
- "80:80"
environment:
NEXT_PUBLIC_SITE_URL: ${NEXT_PUBLIC_SITE_URL}
NEXT_PUBLIC_AZURE_CLIENT_ID: ${NEXT_PUBLIC_AZURE_CLIENT_ID}
Expand Down
4 changes: 2 additions & 2 deletions src/api/api-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const api = axios.create({
api.interceptors.request.use(
async (config) => {
const token = await getToken();
logger.debug('api config.baseURL:', config.baseURL);
logger.debug('env backend url:', process.env.NEXT_PUBLIC_BACKEND_URL);
// logger.debug('api config.baseURL:', config.baseURL);
// logger.debug('env backend url:', process.env.NEXT_PUBLIC_BACKEND_URL);
if (token) {
config.headers.Authorization = `Bearer ${token}`;
} else {
Expand Down
16 changes: 8 additions & 8 deletions src/components/auth/sign-in-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ export function SignInForm({ error }: SignInFormProps): React.JSX.Element {
<Typography align="center" variant="h6">
Welcome to EduQuest!
</Typography>
<Typography align="center" variant="body1">
{process.env.NEXT_PUBLIC_AZURE_CLIENT_ID}
{process.env.NEXT_PUBLIC_AZURE_REDIRECT_URI}
{process.env.NEXT_PUBLIC_SITE_URL}
{process.env.NEXT_PUBLIC_BACKEND_URL}
{process.env.NEXT_PUBLIC_MICROSERVICE_URL}
{process.env.NEXT_PUBLIC_LOGIN_REQUEST_SCOPE}
</Typography>
{/*<Typography align="center" variant="body1">*/}
{/* {process.env.NEXT_PUBLIC_AZURE_CLIENT_ID}*/}
{/* {process.env.NEXT_PUBLIC_AZURE_REDIRECT_URI}*/}
{/* {process.env.NEXT_PUBLIC_SITE_URL}*/}
{/* {process.env.NEXT_PUBLIC_BACKEND_URL}*/}
{/* {process.env.NEXT_PUBLIC_MICROSERVICE_URL}*/}
{/* {process.env.NEXT_PUBLIC_LOGIN_REQUEST_SCOPE}*/}
{/*</Typography>*/}
<Typography align="center" variant="body1">
A platform for you to learn and earn.
</Typography>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/auth/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const authApi = axios.create({
// Set up the request interceptor to use MSAL's getToken method
authApi.interceptors.request.use(
async (config) => {
logger.debug('auth config.baseURL:', config.baseURL);
logger.debug('auth env backend url:', process.env.NEXT_PUBLIC_BACKEND_URL);
// logger.debug('auth config.baseURL:', config.baseURL);
// logger.debug('auth env backend url:', process.env.NEXT_PUBLIC_BACKEND_URL);
const token = await getToken();
if (token) {
config.headers.Authorization = `Bearer ${token}`;
Expand Down

0 comments on commit e9d91c7

Please sign in to comment.