Skip to content

Commit 48eb6ac

Browse files
authored
Merge pull request #83 from standleypg-dev/Migrate-To-NetCord
Fix frontend build when on local env
2 parents 4e05ca8 + e2e8e37 commit 48eb6ac

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/Infrastructure/Services/NetCordPlayerHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private async Task DisconnectVoiceClient()
143143
{
144144
await playerState.StopCts?.CancelAsync()!;
145145
playerState.StopCts?.Dispose();
146-
playerState.StopCts = null;
146+
playerState.StopCts = null!;
147147
playerState.CurrentAction = PlayerAction.Stop;
148148
playerState.DisconnectAsyncCallback = null;
149149
playerState.CurrentVoiceClient = null;

src/UI/App/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "tsc && vite build --mode production",
9+
"build:dev": "tsc && vite build --mode development",
910
"preview": "vite preview"
1011
},
1112
"dependencies": {

src/Worker/Worker.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
<Target Name="BuildFrontend" BeforeTargets="Build">
7676
<Message Text="Building frontend..." Importance="high" />
7777
<Exec Command="npm install" WorkingDirectory="../UI/App" />
78-
<Exec Command="npm run build" WorkingDirectory="../UI/App" />
78+
<Exec Command="npm run build" WorkingDirectory="../UI/App" Condition="'$(Configuration)' == 'Release'" />
79+
<Exec Command="npm run build:dev" WorkingDirectory="../UI/App" Condition="'$(Configuration)' == 'Debug'" />
7980
<Message Text="Frontend build complete" Importance="high" />
8081
</Target>
8182

0 commit comments

Comments
 (0)