Skip to content

Commit 1c4cea9

Browse files
committed
chore: 빌드 버전을 시간+해시로 수정
1 parent b56f9d0 commit 1c4cea9

4 files changed

Lines changed: 68 additions & 8 deletions

File tree

apps/pyconkr-2025/vite.config.mts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,23 @@ export default defineConfig(({ mode }) => {
1111
const env = loadEnv(mode, path.resolve(__dirname, "../../dotenv"), "");
1212
const backendApiDomain = env.VITE_PYCONKR_BACKEND_API_DOMAIN ?? "";
1313

14-
// Faro 릴리스 식별용 빌드 버전. CI에선 git short SHA, 로컬에선 "local".
15-
const version = process.env.GITHUB_SHA?.slice(0, 7) ?? "local";
14+
// Faro 릴리스 식별: 빌드 시각(KST, YYYY-MM-DD_HH-mm-ss) + git short SHA. 예: 2026-06-17_14-30-12+abc1234
15+
const sha = process.env.GITHUB_SHA?.slice(0, 7) ?? "local";
16+
const t = Object.fromEntries(
17+
new Intl.DateTimeFormat("en-US", {
18+
timeZone: "Asia/Seoul",
19+
year: "numeric",
20+
month: "2-digit",
21+
day: "2-digit",
22+
hour: "2-digit",
23+
minute: "2-digit",
24+
second: "2-digit",
25+
hourCycle: "h23",
26+
})
27+
.formatToParts(new Date())
28+
.map((p) => [p.type, p.value])
29+
);
30+
const version = `${t.year}-${t.month}-${t.day}_${t.hour}-${t.minute}-${t.second}+${sha}`;
1631

1732
// 백엔드 응답 쿠키의 Domain 속성(예: pycon.kr) 제거 — localhost origin에서 브라우저가 저장 가능하도록.
1833
const proxyOptions = {

apps/pyconkr-2026/vite.config.mts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,23 @@ export default defineConfig(({ mode }) => {
1111
const env = loadEnv(mode, path.resolve(__dirname, "../../dotenv"), "");
1212
const backendApiDomain = env.VITE_PYCONKR_BACKEND_API_DOMAIN ?? "";
1313

14-
// Faro 릴리스 식별용 빌드 버전. CI에선 git short SHA, 로컬에선 "local".
15-
const version = process.env.GITHUB_SHA?.slice(0, 7) ?? "local";
14+
// Faro 릴리스 식별: 빌드 시각(KST, YYYY-MM-DD_HH-mm-ss) + git short SHA. 예: 2026-06-17_14-30-12+abc1234
15+
const sha = process.env.GITHUB_SHA?.slice(0, 7) ?? "local";
16+
const t = Object.fromEntries(
17+
new Intl.DateTimeFormat("en-US", {
18+
timeZone: "Asia/Seoul",
19+
year: "numeric",
20+
month: "2-digit",
21+
day: "2-digit",
22+
hour: "2-digit",
23+
minute: "2-digit",
24+
second: "2-digit",
25+
hourCycle: "h23",
26+
})
27+
.formatToParts(new Date())
28+
.map((p) => [p.type, p.value])
29+
);
30+
const version = `${t.year}-${t.month}-${t.day}_${t.hour}-${t.minute}-${t.second}+${sha}`;
1631

1732
// 백엔드 응답 쿠키의 Domain 속성(예: pycon.kr) 제거 — localhost origin에서 브라우저가 저장 가능하도록.
1833
const proxyOptions = {

apps/pyconkr-admin/vite.config.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,23 @@ export default defineConfig(({ mode }) => {
1111
const env = loadEnv(mode, path.resolve(__dirname, "../../dotenv"), "");
1212
const backendApiDomain = env.VITE_PYCONKR_BACKEND_API_DOMAIN ?? "";
1313

14-
// Faro 릴리스 식별용 빌드 버전. CI에선 git short SHA, 로컬에선 "local".
15-
const version = process.env.GITHUB_SHA?.slice(0, 7) ?? "local";
14+
// Faro 릴리스 식별: 빌드 시각(KST, YYYY-MM-DD_HH-mm-ss) + git short SHA. 예: 2026-06-17_14-30-12+abc1234
15+
const sha = process.env.GITHUB_SHA?.slice(0, 7) ?? "local";
16+
const t = Object.fromEntries(
17+
new Intl.DateTimeFormat("en-US", {
18+
timeZone: "Asia/Seoul",
19+
year: "numeric",
20+
month: "2-digit",
21+
day: "2-digit",
22+
hour: "2-digit",
23+
minute: "2-digit",
24+
second: "2-digit",
25+
hourCycle: "h23",
26+
})
27+
.formatToParts(new Date())
28+
.map((p) => [p.type, p.value])
29+
);
30+
const version = `${t.year}-${t.month}-${t.day}_${t.hour}-${t.minute}-${t.second}+${sha}`;
1631

1732
// 백엔드 응답 쿠키의 Domain 속성(예: pycon.kr) 제거 — localhost origin에서 브라우저가 저장 가능하도록.
1833
const proxyOptions = { target: backendApiDomain, changeOrigin: true, cookieDomainRewrite: "" };

apps/pyconkr-participant-portal/vite.config.mts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,23 @@ export default defineConfig(({ mode }) => {
1111
const env = loadEnv(mode, path.resolve(__dirname, "../../dotenv"), "");
1212
const backendApiDomain = env.VITE_PYCONKR_BACKEND_API_DOMAIN ?? "";
1313

14-
// Faro 릴리스 식별용 빌드 버전. CI에선 git short SHA, 로컬에선 "local".
15-
const version = process.env.GITHUB_SHA?.slice(0, 7) ?? "local";
14+
// Faro 릴리스 식별: 빌드 시각(KST, YYYY-MM-DD_HH-mm-ss) + git short SHA. 예: 2026-06-17_14-30-12+abc1234
15+
const sha = process.env.GITHUB_SHA?.slice(0, 7) ?? "local";
16+
const t = Object.fromEntries(
17+
new Intl.DateTimeFormat("en-US", {
18+
timeZone: "Asia/Seoul",
19+
year: "numeric",
20+
month: "2-digit",
21+
day: "2-digit",
22+
hour: "2-digit",
23+
minute: "2-digit",
24+
second: "2-digit",
25+
hourCycle: "h23",
26+
})
27+
.formatToParts(new Date())
28+
.map((p) => [p.type, p.value])
29+
);
30+
const version = `${t.year}-${t.month}-${t.day}_${t.hour}-${t.minute}-${t.second}+${sha}`;
1631

1732
// 백엔드 응답 쿠키의 Domain 속성(예: pycon.kr) 제거 — localhost origin에서 브라우저가 저장 가능하도록.
1833
const proxyOptions = { target: backendApiDomain, changeOrigin: true, cookieDomainRewrite: "" };

0 commit comments

Comments
 (0)