fix: remove HOME_PATH (#43034)
It was only used as a default for hardGoTo, but that function is only called once and does not need the default
This commit is contained in:
committed by
GitHub
parent
946f6847a7
commit
49b4e1f2b3
@ -167,13 +167,8 @@ exports.createPages = function createPages({ graphql, actions, reporter }) {
|
||||
|
||||
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
|
||||
|
||||
exports.onCreateWebpackConfig = ({ stage, plugins, actions }) => {
|
||||
exports.onCreateWebpackConfig = ({ stage, actions }) => {
|
||||
const newPlugins = [
|
||||
plugins.define({
|
||||
HOME_PATH: JSON.stringify(
|
||||
process.env.HOME_PATH || 'http://localhost:3000'
|
||||
)
|
||||
}),
|
||||
// We add the shims of the node globals to the global scope
|
||||
new webpack.ProvidePlugin({
|
||||
Buffer: ['buffer', 'Buffer']
|
||||
|
Reference in New Issue
Block a user