Skip to content

Commit fbddc8d

Browse files
Update asset_mapper.rst
Adds tip about configuration proxy when connection to jsDelivr is failed
1 parent c4e1eaa commit fbddc8d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

frontend/asset_mapper.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,25 @@ This adds the ``bootstrap`` package to your ``importmap.php`` file::
252252
`package.json configuration file`_. Try to contact the package maintainer to
253253
ask them to fix those issues.
254254

255+
.. tip::
256+
257+
If you get a error like as ``Connection was reset for "https://cdn.jsdelivr.net/npm/...".``,
258+
than you can temporaly configure the proxy for connection to the ``jsDelivr`` CDN:
259+
260+
.. code-block:: yaml
261+
262+
# config/packages/framework.yaml
263+
framework:
264+
# ...
265+
http_client:
266+
default_options:
267+
proxy: '185.250.180.238:8080'
268+
# If you use CURL, add extra options:
269+
extra:
270+
curl:
271+
# 61 is value of constant CURLOPT_HTTPPROXYTUNNEL
272+
'61': true
273+
255274
Now you can import the ``bootstrap`` package like usual:
256275

257276
.. code-block:: javascript

0 commit comments

Comments
 (0)