Browse Source

Fix audio uploading without preview

Chocobozzz 1 month ago
parent
commit
fff2183df6
No account linked to committer's email address
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      scripts/build/server.sh
  2. 1
    1
      server/initializers/constants.ts

+ 1
- 1
scripts/build/server.sh View File

@@ -5,4 +5,4 @@ set -eu
5 5
 rm -rf ./dist
6 6
 
7 7
 npm run tsc
8
-cp -r "./server/static" "./dist/server"
8
+cp -r "./server/static" "./server/assets" "./dist/server"

+ 1
- 1
server/initializers/constants.ts View File

@@ -576,7 +576,7 @@ const REDUNDANCY = {
576 576
 const ACCEPT_HEADERS = [ 'html', 'application/json' ].concat(ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS)
577 577
 
578 578
 const ASSETS_PATH = {
579
-  DEFAULT_AUDIO_BACKGROUND: join(root(), 'server', 'assets', 'default-audio-background.jpg')
579
+  DEFAULT_AUDIO_BACKGROUND: join(root(), 'dist', 'server', 'assets', 'default-audio-background.jpg')
580 580
 }
581 581
 
582 582
 // ---------------------------------------------------------------------------

Loading…
Cancel
Save