Skip to content

Commit

Permalink
Vuexでproductionモードを使用可能にし、productionモードで起動する方法を案内 (#2135)
Browse files Browse the repository at this point in the history
* productionモードで起動する方法を案内

* import変更
  • Loading branch information
Hiroshiba authored Jun 29, 2024
1 parent 1deb8b4 commit 0c99dd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ VOICEVOX エディタの実行とは別にエンジン API のサーバを立て
また、エンジン API の宛先エンドポイントを変更する場合は`VITE_DEFAULT_ENGINE_INFOS`内の`host`を変更してください。

```bash
# 開発しやすい環境で実行
npm run electron:serve

# ビルド時に近い環境で実行
npm run electron:serve -- --mode production
```

音声合成エンジンのリポジトリはこちらです <https://github.com/VOICEVOX/voicevox_engine>
Expand Down
3 changes: 2 additions & 1 deletion src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
SpeakerId,
StyleId,
Voice,
isProduction,
} from "@/type/preload";

export const storeKey: InjectionKey<
Expand Down Expand Up @@ -408,7 +409,7 @@ export const store = createStore<State, AllGetters, AllActions, AllMutations>({
...singingStore.actions,
...singingCommandStore.actions,
},
strict: process.env.NODE_ENV !== "production",
strict: !isProduction,
});

export const useStore = (): Store<
Expand Down

0 comments on commit 0c99dd9

Please sign in to comment.