Skip to content

Commit 828eb9b

Browse files
committed
Adding details about Encore dev-server and https
1 parent 0c37145 commit 828eb9b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

frontend/encore/dev-server.rst

+18
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ Twig shortcuts (or are :ref:`processing your assets through entrypoints.json <lo
1717
in some other way), you're done: the paths in your templates will automatically point
1818
to the dev server.
1919

20+
Enabling HTTPS using the Symfony Web Server
21+
-------------------------------------------
22+
23+
If you're using the :doc:`Symfony web server </setup/symfony_server>` locally with HTTPS,
24+
you'll need to also tell the dev-server to use HTTPS. To do this, you can reuse the Symfony web
25+
server SSL certificate:
26+
27+
.. code-block:: terminal
28+
29+
# Unix-based systems
30+
$ yarn dev-server --https --pfx=$HOME/.symfony/certs/default.p12
31+
32+
# Windows
33+
$ encore dev-server --https --pfx=%UserProfile%\.symfony\certs\default.p12
34+
35+
dev-server Options
36+
------------------
37+
2038
The ``dev-server`` command supports all the options defined by `webpack-dev-server`_.
2139
You can set these options via command line options:
2240

0 commit comments

Comments
 (0)