Skip to content

Commit 941e9af

Browse files
committed
fix: dev 경로 변경
1 parent f7521b2 commit 941e9af

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

apps/profile/src/components/NotFound.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import styled from '@emotion/styled';
22
import { Helmet } from 'react-helmet-async';
3+
import { EXTERNAL_DOMAIN } from '~/constants/external';
34

45
const NotFound = () => {
56
return (
@@ -17,7 +18,7 @@ const NotFound = () => {
1718
<br />
1819
URL을 다시 확인해 주세요.
1920
</Description>
20-
<HomeLink href="https://boolti.in">불티 홈으로 가기</HomeLink>
21+
<HomeLink href={EXTERNAL_DOMAIN.SHOW_MANAGER}>불티 홈으로 가기</HomeLink>
2122
</Content>
2223
</Container>
2324
</>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { IS_PRODUCTION_PHASE } from './phase';
2+
3+
export const EXTERNAL_DOMAIN = {
4+
SHOW_MANAGER: `https://${IS_PRODUCTION_PHASE ? '' : 'dev.'}boolti.in`,
5+
SHOW_TICKET_PREVIEW: `https://${IS_PRODUCTION_PHASE ? '' : 'dev.'}preview.boolti.in`,
6+
} as const;
7+
8+
export const EXTERNAL_URL = {
9+
SHOW_MANAGER_INFO: (showId: string | number) =>
10+
`${EXTERNAL_DOMAIN.SHOW_MANAGER}/show/${showId}/info`,
11+
12+
SHOW_TICKET_PREVIEW: (showId: string | number) =>
13+
`${EXTERNAL_DOMAIN.SHOW_TICKET_PREVIEW}/show/${showId}`,
14+
} as const;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const IS_PRODUCTION_PHASE = window.location.origin === 'https://profile.boolti.in';

apps/profile/src/constants/url.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export const PROFILE_URL = 'https://profile.boolti.in/';
1+
import { IS_PRODUCTION_PHASE } from './phase';
2+
3+
export const PROFILE_URL = `https://${IS_PRODUCTION_PHASE ? '' : 'profile.dev.'}${IS_PRODUCTION_PHASE ? 'profile.' : ''}boolti.in/`;

0 commit comments

Comments
 (0)