Set up docker and docker-compose for SSR
This commit is contained in:
@@ -11,7 +11,7 @@ module.exports = function (env, argv) {
|
||||
base.mode = "development";
|
||||
base.entry = [
|
||||
"react-hot-loader/patch", // Activate HMR for React
|
||||
"webpack-dev-server/client?http://0.0.0.0:8080", // Bundle the client for webpack-dev-server and connect to the provided endpoint
|
||||
"webpack-dev-server/client?http://0.0.0.0:3000", // Bundle the client for webpack-dev-server and connect to the provided endpoint
|
||||
"webpack/hot/only-dev-server", // Bundle the client for hot reloading, only- means to only hot reload for successful updates
|
||||
"./index.tsx" // The entry point of our app
|
||||
];
|
||||
@@ -19,7 +19,7 @@ module.exports = function (env, argv) {
|
||||
hot: true, // Enable HMR on the server
|
||||
historyApiFallback: true,
|
||||
host: '0.0.0.0',
|
||||
port: '8080',
|
||||
port: '3000',
|
||||
allowedHosts: [
|
||||
'.sik.party',
|
||||
'.sahkoinsinoorikilta.fi',
|
||||
|
||||
Reference in New Issue
Block a user