summaryrefslogtreecommitdiff
path: root/packages/frontend-embed
diff options
context:
space:
mode:
authoranatawa12 <anatawa12@icloud.com>2025-05-27 15:18:37 +0900
committerGitHub <noreply@github.com>2025-05-27 15:18:37 +0900
commite954060f3b463c6c2b618807a3d768d94a3ffee0 (patch)
treed79e9959b4c33ce74eab0b2a854e30d6054b77c8 /packages/frontend-embed
parentfix: jest.js exits with zero value even if underlying jest exited with non-ze... (diff)
downloadmisskey-e954060f3b463c6c2b618807a3d768d94a3ffee0.tar.gz
misskey-e954060f3b463c6c2b618807a3d768d94a3ffee0.tar.bz2
misskey-e954060f3b463c6c2b618807a3d768d94a3ffee0.zip
chore(dev): update vite configuration (#16110)
Diffstat (limited to 'packages/frontend-embed')
-rw-r--r--packages/frontend-embed/vite.config.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/frontend-embed/vite.config.ts b/packages/frontend-embed/vite.config.ts
index 3d628c800e..a057581b3a 100644
--- a/packages/frontend-embed/vite.config.ts
+++ b/packages/frontend-embed/vite.config.ts
@@ -66,9 +66,15 @@ export function getConfig(): UserConfig {
return {
base: '/embed_vite/',
+ // The console is shared with backend, so clearing the console will also clear the backend log.
+ clearScreen: false,
+
server: {
- host,
+ // The backend allows access from any addresses, so vite also allows access from any addresses.
+ host: '0.0.0.0',
+ allowedHosts: host ? [host] : undefined,
port: 5174,
+ strictPort: true,
hmr: {
// バックエンド経由での起動時、Viteは5174経由でアセットを参照していると思い込んでいるが実際は3000から配信される
// そのため、バックエンドのWSサーバーにHMRのWSリクエストが吸収されてしまい、正しくHMRが機能しない