Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/profile/src/components/NotFound.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import styled from '@emotion/styled';
import { Helmet } from 'react-helmet-async';
import { EXTERNAL_DOMAIN } from '~/constants/external';

const NotFound = () => {
return (
Expand All @@ -17,7 +18,7 @@ const NotFound = () => {
<br />
URL을 다시 확인해 주세요.
</Description>
<HomeLink href="https://boolti.in">불티 홈으로 가기</HomeLink>
<HomeLink href={EXTERNAL_DOMAIN.SHOW_MANAGER}>불티 홈으로 가기</HomeLink>
</Content>
</Container>
</>
Expand Down
14 changes: 14 additions & 0 deletions apps/profile/src/constants/external.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { IS_PRODUCTION_PHASE } from './phase';

export const EXTERNAL_DOMAIN = {
SHOW_MANAGER: `https://${IS_PRODUCTION_PHASE ? '' : 'dev.'}boolti.in`,
SHOW_TICKET_PREVIEW: `https://${IS_PRODUCTION_PHASE ? '' : 'dev.'}preview.boolti.in`,
} as const;

export const EXTERNAL_URL = {
SHOW_MANAGER_INFO: (showId: string | number) =>
`${EXTERNAL_DOMAIN.SHOW_MANAGER}/show/${showId}/info`,

SHOW_TICKET_PREVIEW: (showId: string | number) =>
`${EXTERNAL_DOMAIN.SHOW_TICKET_PREVIEW}/show/${showId}`,
} as const;
1 change: 1 addition & 0 deletions apps/profile/src/constants/phase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const IS_PRODUCTION_PHASE = window.location.origin === 'https://profile.boolti.in';
4 changes: 3 additions & 1 deletion apps/profile/src/constants/url.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export const PROFILE_URL = 'https://profile.boolti.in/';
import { IS_PRODUCTION_PHASE } from './phase';

export const PROFILE_URL = `https://${IS_PRODUCTION_PHASE ? '' : 'profile.dev.'}${IS_PRODUCTION_PHASE ? 'profile.' : ''}boolti.in/`;
Loading