Skip to content

Commit

Permalink
[Bug] Turn off stimulus debug mode in production
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed Nov 7, 2024
1 parent b70fd77 commit ec3c74b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Sylius/Bundle/AdminBundle/Resources/assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ app.register('product-taxon-tree', ProductTaxonTree);
app.register('save-positions', SavePositionsController);
app.register('compound-form-errors', CompoundFormErrorsController);
app.register('tabs-errors', TabsErrorsController);

app.debug = process.env.NODE_ENV !== 'production';
2 changes: 2 additions & 0 deletions src/Sylius/Bundle/ShopBundle/Resources/assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ export const app = startStimulusApp(require.context(

app.register('live', LiveController);
app.register('api-login', ApiLoginController);

app.debug = process.env.NODE_ENV !== 'production';

0 comments on commit ec3c74b

Please sign in to comment.