File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ Serving Assets in dev vs prod
8181~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8282
8383In the ``dev `` environment, the URL ``/assets/images/duck-3c16d9220694c0e56d8648f25e6035e9.png ``
84- is handled and returned by your Symfony app.
84+ is handled and returned by your Symfony app - but only if `` public/assets/ `` is empty (see below) .
8585
8686For the ``prod `` environment, before deploy, you should run:
8787
@@ -93,6 +93,11 @@ This will physically copy all the files from your mapped directories to
9393``public/assets/ `` so that they're served directly by your web server.
9494See :ref: `Deployment <asset-mapper-deployment >` for more details.
9595
96+ .. caution ::
97+
98+ If you compiled your assets on your development machine, you need to delete them again,
99+ in order to make Symfony serve the current versions from ``assets/ `` again.
100+
96101.. tip ::
97102
98103 If you need to copy the compiled assets to a different location (e.g. upload
You can’t perform that action at this time.
0 commit comments