Skip to content

Commit

Permalink
feat: Improve retrieval of GitHub app name configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesNg35 committed Dec 11, 2023
1 parent 367bd39 commit ca5aa6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions apps/web/app/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export const smtpConfiguration: () => I_SMTPRequest = () => ({
});

// Cookies
// export const COOKIE_DOMAINS = (process.env.NEXT_PUBLIC_COOKIE_DOMAINS || 'ever.team').split(',').map((d) => d.trim());
export const COOKIE_DOMAINS = getNextPublicEnv('NEXT_PUBLIC_COOKIE_DOMAINS', {
default: 'ever.team',
map(value) {
Expand Down Expand Up @@ -98,7 +97,7 @@ export const jitsuConfiguration: () => JitsuOptions = () => ({
});

// Github Integration
export const GITHUB_APP_NAME = process.env.NEXT_PUBLIC_GITHUB_APP_NAME || 'ever-github';
export const GITHUB_APP_NAME = getNextPublicEnv('NEXT_PUBLIC_GITHUB_APP_NAME', 'ever-github');

// Application Languages
export const APPLICATION_LANGUAGES = [
Expand Down
2 changes: 1 addition & 1 deletion apps/web/lib/settings/integration-setting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const IntegrationSetting = () => {
}, []);

const queries = new URLSearchParams(params || {});
const url = `https://github.com/apps/${GITHUB_APP_NAME}/installations/new?${queries.toString()}`;
const url = `https://github.com/apps/${GITHUB_APP_NAME.value}/installations/new?${queries.toString()}`;

const { activeTeam } = useOrganizationTeams();

Expand Down

0 comments on commit ca5aa6b

Please sign in to comment.