1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 15:26:08 +02:00

fix(backend): devサーバーの起動に失敗することがある問題を修正 (#17317)

* fix(backend): devサーバーの起動に失敗することがある問題を修正?

* fix
This commit is contained in:
かっこかり
2026-04-16 14:33:36 +09:00
committed by GitHub
parent 37bfcb604f
commit 0be3142d54
3 changed files with 12 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ function backendDevServerPlugin(): Plugin {
if (backendProcess) {
await killBackendProcess();
}
backendProcess = execaNode('./built/entry.js', {
backendProcess = execaNode('./built/entry.js', [], {
stdout: process.stdout,
stderr: process.stderr,
env: {
@@ -102,6 +102,6 @@ export default defineConfig((args) => {
clearScreen: false,
},
// ビルドの高速化のために、watchモードのときは外部モジュールは全てバンドルしないようにする
external: isWatchMode ? [/node_modules/] : externalModules,
external: isWatchMode ? /^(?!@\/)[^.\/](?!:[\/\\])/ : externalModules,
};
});