File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,21 @@ option:
76
76
77
77
$ ./node_modules/.bin/encore dev-server --hot
78
78
79
+ If you want to use SSL with self-signed certificates, add the ``--https ``,
80
+ ``--pfx= ``, and ``--allowed-hosts `` options to the ``dev-server `` command in
81
+ the ``package.json `` file:
82
+
83
+ .. code-block :: diff
84
+
85
+ {
86
+ ...
87
+ "scripts": {
88
+ - "dev-server": "encore dev-server",
89
+ + "dev-server": "encore dev-server --https --pfx=$HOME/.symfony/certs/default.p12 --allowed-hosts=mydomain.wip",
90
+ ...
91
+ }
92
+ }
93
+
79
94
If you experience issues related to CORS (Cross Origin Resource Sharing), add
80
95
the ``--disable-host-check `` and ``--port `` options to the ``dev-server ``
81
96
command in the ``package.json `` file:
@@ -96,6 +111,7 @@ command in the ``package.json`` file:
96
111
Beware that `it's not recommended to disable host checking `_ in general, but
97
112
here it's required to solve the CORS issue.
98
113
114
+
99
115
.. _`webpack-dev-server` : https://webpack.js.org/configuration/dev-server/
100
116
.. _`HMR` : https://webpack.js.org/concepts/hot-module-replacement/
101
117
.. _`it's not recommended to disable host checking` : https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck
You can’t perform that action at this time.
0 commit comments