Skip to content

Commit 90f50c3

Browse files
epicfaaceedi9999
authored andcommitted
fix publicPath for netlify deploy previews (rjsf-team#1413)
1 parent 20ff3b9 commit 90f50c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
output: {
1010
path: path.join(__dirname, "build"),
1111
filename: "bundle.js",
12-
publicPath: "/react-jsonschema-form/"
12+
publicPath: process.env.SHOW_NETLIFY_BADGE ? "": "/react-jsonschema-form/"
1313
},
1414
plugins: [
1515
new MonacoWebpackPlugin({

0 commit comments

Comments
 (0)