feat: profile 새 버전 안내 toast를 추가한다
배포 bundle과 같은 commit의 정적 버전 문서를 생성하고, 열린 탭이 DB mutation 없이 변경을 감지하도록 한다. 동일 버전은 tab session에서 한 번만 안내하며 강제 새로고침은 하지 않는다.
This commit is contained in:
@@ -48,6 +48,17 @@ void describe('game frontend Vite config', () => {
|
||||
loaded?.config.define?.['import.meta.env.VITE_BUILD_COMMIT_SHA'],
|
||||
JSON.stringify(commitSha.toLowerCase())
|
||||
);
|
||||
assert.equal(
|
||||
loaded?.config.plugins?.some(
|
||||
(plugin) =>
|
||||
plugin !== null &&
|
||||
typeof plugin === 'object' &&
|
||||
!Array.isArray(plugin) &&
|
||||
'name' in plugin &&
|
||||
plugin.name === 'sammo-deployment-version'
|
||||
),
|
||||
true
|
||||
);
|
||||
} finally {
|
||||
if (previousCommitSha === undefined) delete process.env.VITE_BUILD_COMMIT_SHA;
|
||||
else process.env.VITE_BUILD_COMMIT_SHA = previousCommitSha;
|
||||
|
||||
Reference in New Issue
Block a user