8000 [Encore] Webpack Dev Server & Symfony CLI HTTPS: add note for Node 17+ · symfony/symfony-docs@0ec56cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ec56cd

Browse files
committed
[Encore] Webpack Dev Server & Symfony CLI HTTPS: add note for Node 17+
1 parent cb7247a commit 0ec56cd

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

frontend/encore/dev-server.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ method in your ``webpack.config.js`` file:
5858
})
5959
;
6060
61-
6261
Enabling HTTPS using the Symfony Web Server
6362
-------------------------------------------
6463

@@ -84,6 +83,19 @@ server SSL certificate:
8483
+ }
8584
+ })
8685
86+
.. note::
87+
88+
If you are using Node.js 17 or newer, you have to run the ``dev-server`` command with the
89+
``--openssl-legacy-provider`` option:
90+
91+
.. code-block:: terminal
92+
93+
# if you use the Yarn package manager
94+
$ NODE_OPTIONS=--openssl-legacy-provider yarn encore dev-server
95+
96+
# if you use the npm package manager
97+
$ NODE_OPTIONS=--openssl-legacy-provider npm run dev-server
98+
8799
CORS Issues
88100
-----------
89101

0 commit comments

Comments
 (0)
0