Skip to content

Commit

Permalink
fix(studio): prevent back & forth when file is not found (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
allardy committed Jan 25, 2022
1 parent 13af6fa commit c22ea75
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/studio-be/src/core/app/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,12 @@ export class HTTPServer {
)
}

this.app.use('/assets/studio/ui', this.guardWhiteLabel(), express.static(resolveStudioAsset('')))
this.app.use(
'/assets/studio/ui',
this.guardWhiteLabel(),
express.static(resolveStudioAsset(''), { fallthrough: false })
)

this.app.use(`${BASE_API_PATH}/studio/modules`, this.modulesRouter.router)

await this.studioRouter.setupRoutes(this.app)
Expand Down

0 comments on commit c22ea75

Please sign in to comment.