Skip to content

Commit

Permalink
DIG-1750: Fix Storybook in Registry
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipbentonkelly committed Feb 21, 2023
1 parent c27358e commit 1d05216
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
31 changes: 17 additions & 14 deletions services-js/registry-certs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
const path = require('path');

const withSourceMaps = require('@zeit/next-source-maps')();
const withPolyfill = require('@cityofboston/next-client-common/with-polyfill')();

module.exports = withSourceMaps(
withPolyfill({
distDir: path.join('build', '.next'),
webpack: function(config) {
config.module.rules.push({
test: /\.html$/,
use: 'raw-loader',
});
module.exports = withPolyfill({
distDir: path.join('..', 'build', '.next'),
});

// const withSourceMaps = require('@zeit/next-source-maps')();
// module.exports = withSourceMaps(
// withPolyfill({
// distDir: path.join('build', '.next'),
// webpack: function(config) {
// config.module.rules.push({
// test: /\.html$/,
// use: 'raw-loader',
// });

return config;
},
})
);
// return config;
// },
// })
// );
2 changes: 1 addition & 1 deletion services-js/registry-certs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,6 @@
"rimraf": "^2.6.2",
"ts-node": "^6.0.5",
"tsc-watch": "^1.0.26",
"typescript": "^4.4.2"
"typescript": "^3.5.1"
}
}

0 comments on commit 1d05216

Please sign in to comment.