Skip to content

[#330] 환경변수 수정#331

Merged
wnsgh7368 merged 1 commit intodevfrom
fix/oasis-share-link-env
Feb 12, 2026
Merged

[#330] 환경변수 수정#331
wnsgh7368 merged 1 commit intodevfrom
fix/oasis-share-link-env

Conversation

@wnsgh7368
Copy link
Copy Markdown
Collaborator

🔗 관련 이슈

✨ 변경 내용

  • 환경변수 수정

@wnsgh7368 wnsgh7368 self-assigned this Feb 12, 2026
@wnsgh7368 wnsgh7368 linked an issue Feb 12, 2026 that may be closed by this pull request
@wnsgh7368 wnsgh7368 merged commit 1aeba04 into dev Feb 12, 2026
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @wnsgh7368, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 풀 리퀘스트는 공유 링크 생성에 사용되는 환경 변수를 수정하여 문제를 해결합니다. 이 변경 사항은 공유 링크를 생성할 때 올바른 프론트엔드 URL이 사용되도록 보장하여, 애플리케이션 내에서 URL 생성의 정확성과 일관성을 향상시킵니다.

Highlights

  • 환경 변수 업데이트: shareLink.service.js 파일에서 baseUrl을 결정하는 환경 변수가 SERVER_URL에서 FRONTEND_URL로 변경되었습니다.
Changelog
  • src/services/shareLink.service.js
    • baseUrl을 설정하는 데 사용되는 환경 변수를 SERVER_URL에서 FRONTEND_URL로 변경했습니다.
Activity
  • 이 풀 리퀘스트에 대한 활동은 제공되지 않았습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@wnsgh7368 wnsgh7368 deleted the fix/oasis-share-link-env branch February 12, 2026 08:57
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

환경 변수 SERVER_URL을 보다 명확한 FRONTEND_URL로 변경하여 코드의 가독성을 높인 점이 좋습니다. 공유 링크 생성 로직에서 FRONTEND_URLLOCAL_URL 환경 변수가 모두 설정되지 않았을 때 발생할 수 있는 잠재적 오류를 방지하기 위한 방어 코드 추가를 제안했습니다. 환경 변수가 없는 경우 baseUrlundefined가 되어 잘못된 URL이 생성될 수 있으므로, 이 경우 명시적으로 에러를 발생시켜 문제를 조기에 발견하고 대응하는 것이 더 안전한 방법입니다.

const existingLink = await findExistingLink(projectId, scope, videoId);

const baseUrl = process.env.SERVER_URL || process.env.LOCAL_URL;
const baseUrl = process.env.FRONTEND_URL || process.env.LOCAL_URL;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

환경 변수 이름을 FRONTEND_URL로 변경하여 코드의 명확성을 높인 점이 좋습니다. 다만, FRONTEND_URLLOCAL_URL이 모두 설정되지 않은 경우 baseUrlundefined가 되어 잘못된 공유 URL이 생성될 수 있습니다. 설정 오류 시 명시적으로 에러를 발생시켜 문제를 빠르게 파악할 수 있도록 방어 코드를 추가하는 것을 제안합니다.

  const baseUrl = process.env.FRONTEND_URL || process.env.LOCAL_URL;
  if (!baseUrl) {
    throw new Error("Server configuration error: Base URL for share links is not configured.");
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fix][오아시스] shareLink에서 사용하는 환경변수 수정

1 participant