Skip to content

Commit

Permalink
fix: /webtransport breaks status page (#2057)
Browse files Browse the repository at this point in the history
Closes  #2033
  • Loading branch information
SgtPooki committed Nov 7, 2022
1 parent 0bb5bf3 commit ea89e7f
Show file tree
Hide file tree
Showing 8 changed files with 575 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.js
Expand Up @@ -5,7 +5,7 @@

const webpack = require('webpack')

const webpackOverride = require('../config-overrides')
const { webpack: webpackOverride } = require('../config-overrides')

/** @type {import('@storybook/core-common').StorybookConfig} */
const storybookConfig = {
Expand Down
7 changes: 6 additions & 1 deletion config-overrides.js
Expand Up @@ -44,7 +44,7 @@ function modifyBabelLoaderRule (rules, root = true) {
return foundRules
}

module.exports = function webpackOverride (config) {
function webpackOverride (config) {
const fallback = config.resolve.fallback || {}

Object.assign(fallback, {
Expand All @@ -71,3 +71,8 @@ module.exports = function webpackOverride (config) {

return config
}

module.exports = {
webpack: webpackOverride,
jest: (config) => config
}

0 comments on commit ea89e7f

Please sign in to comment.