We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fcef62 commit 71a8257Copy full SHA for 71a8257
config/webpack/serverWebpackConfig.js
@@ -1,6 +1,7 @@
1
// The source code including full typescript support is available at:
2
// https://github.com/shakacode/react_on_rails_tutorial_with_ssr_and_hmr_fast_refresh/blob/master/config/webpack/serverWebpackConfig.js
3
4
+const path = require('path');
5
const { config } = require('shakapacker');
6
const commonWebpackConfig = require('./commonWebpackConfig');
7
@@ -47,7 +48,6 @@ const configureServer = () => {
47
48
// config/initializers/react_on_rails.rb
49
// Output to a private directory for SSR bundles (not in public/)
50
// Using the default React on Rails path: ssr-generated
- const path = require('path');
51
serverWebpackConfig.output = {
52
filename: 'server-bundle.js',
53
globalObject: 'this',
0 commit comments