Skip to content

Commit

Permalink
feat: update server config
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnsgn committed Aug 14, 2021
1 parent 0830b15 commit 3e68295
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default {
topLevelAwait: true,
},
// bail: false,
// cache: {}
// cache: { type: "filesystem", profile: true },
// ignoreWarnings: null,
// loader: {},
// parallelism: 100,
Expand Down
31 changes: 16 additions & 15 deletions config/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,38 @@ import { join } from "path";
import { PATHS, ROOT } from "./config.js";

export default {
// allowedHosts: "all",
// bonjour: false,
// client: {},
compress: true,
dev: {
client: {
logging: "info",
overlay: false,
progress: true,
},
// compress: true,
devMiddleware: {
publicPath: "/",
},
// firewall: ['192.168.0.1', 'domain.com']
firewall: false,
// headers: {
// "X-Custom-Foo": "bar"
// },
port: 8080,
historyApiFallback: true,
hot: true,
http2: true,
// host: "local-ip",
// hot: true,
// http2: true,
https: true,
// injectClient: false,
// injectHot: false,
// ipc: true,
liveReload: true,
// onAfterSetupMiddleware: () => {},
// onBeforeSetupMiddleware(server) {},
// onListening: () => {},
open: true,
// openPage: ['/different/page1', '/different/page2'],
// port: 8080,
// proxy: {
// "/api": "http://localhost:3000"
// },
// public: "myapp.test:80",
setupExitSignals: true,
// static: path.join(ROOT, PATHS.get("dist")),
static: PATHS.get("dist"),
transportMode: "ws", // "sockjs",
static: join(ROOT, PATHS.get("dist")),
// static: PATHS.get("dist"),
watchFiles: [join(ROOT, PATHS.get("src"), "**/*.{ejs,html}")],
// webSocketServer: "",
};

0 comments on commit 3e68295

Please sign in to comment.