Skip to content

Commit

Permalink
Fix assets folder in server
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Nov 27, 2023
1 parent 5d2b76e commit 83517b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const initializeGameClient = ({ project, assets, port, game }: Options):
app.use(
cors({ allowedHeaders: '*' }),
express.static(publicPath('game'), { maxAge: '1d' }),
express.static(assets ?? project, { maxAge: '1d' }))
express.static(assets ? join(project, assets) : project, { maxAge: '1d' }))

const soundsFolder = getSoundsFolder(project, assets)
if (soundsFolder !== assets) {
Expand Down

0 comments on commit 83517b9

Please sign in to comment.