Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions frontend/asset_mapper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,25 @@ This adds the ``bootstrap`` package to your ``importmap.php`` file::
`package.json configuration file`_. Try to contact the package maintainer to
ask them to fix those issues.

.. tip::

If you get a error like as ``Connection was reset for "https://cdn.jsdelivr.net/npm/...".``,
than you can temporaly configure the proxy for connection to the ``jsDelivr`` CDN:

.. code-block:: yaml

# config/packages/framework.yaml
framework:
# ...
http_client:
default_options:
proxy: '185.250.180.238:8080'
# If you use CURL, add extra options:
extra:
curl:
# 61 is value of constant CURLOPT_HTTPPROXYTUNNEL
'61': true

Now you can import the ``bootstrap`` package like usual:

.. code-block:: javascript
Expand Down