Skip to content

[AssetMapper] Update asset_mapper.rst #20947

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025
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