Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 88b4a70

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

File tree

Expand file treeCollapse file tree

1 file changed

+19
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+19
-0
lines changed

‎frontend/asset_mapper.rst

Copy file name to clipboardExpand all lines: frontend/asset_mapper.rst
+19Lines changed: 19 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.