Skip to content

Commit 88b4a70

Browse files
WinterSilencejaviereguiluz
authored andcommitted
Update asset_mapper.rst
Adds tip about configuration proxy when connection to jsDelivr is failed
1 parent a0651a2 commit 88b4a70

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

frontend/asset_mapper.rst

+19
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,25 @@ This adds the ``bootstrap`` package to your ``importmap.php`` file::
225225
`package.json configuration file`_. Try to contact the package maintainer to
226226
ask them to fix those issues.
227227

228+
.. tip::
229+
230+
If you get a error like as ``Connection was reset for "https://cdn.jsdelivr.net/npm/...".``,
231+
than you can temporaly configure the proxy for connection to the ``jsDelivr`` CDN:
232+
233+
.. code-block:: yaml
234+
235+
# config/packages/framework.yaml
236+
framework:
237+
# ...
238+
http_client:
239+
default_options:
240+
proxy: '185.250.180.238:8080'
241+
# If you use CURL, add extra options:
242+
extra:
243+
curl:
244+
# 61 is value of constant CURLOPT_HTTPPROXYTUNNEL
245+
'61': true
246+
228247
Now you can import the ``bootstrap`` package like usual:
229248

230249
.. code-block:: javascript

0 commit comments

Comments
 (0)