Skip to content

Commit

Permalink
fix(docs): fix missing buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
rittme committed Sep 18, 2020
1 parent 996acd9 commit 9f86631
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
4 changes: 3 additions & 1 deletion packages/docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const path = require('path');

module.exports = {
title: 'Request Docs',
tagline: 'Technical documentation',
Expand All @@ -6,7 +8,7 @@ module.exports = {
favicon: 'img/cropped-favicon-32x32.png',
organizationName: 'requestNetwork',
projectName: 'requestNetwork/packages/docs',
plugins: ['axios'],
plugins: [path.resolve(__dirname, 'webpack-config')],
onBrokenLinks: 'log',
themeConfig: {
colorMode: {
Expand Down
8 changes: 0 additions & 8 deletions packages/docs/src/components/redoc.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/docs/src/pages/portal/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import Layout from '@theme/Layout';
import RedocStandalone from '../../components/redoc';
import { RedocStandalone } from 'redoc';
import styles from './styles.module.css';

class docApi extends React.Component {
Expand Down
14 changes: 14 additions & 0 deletions packages/docs/webpack-config/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const webpack = require('webpack');

module.exports = function (context, options) {
return {
name: 'webpack-config',
configureWebpack(config, isServer, utils) {
return {
plugins: [new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
})]
}
}
}
};

0 comments on commit 9f86631

Please sign in to comment.