Проблемы:
1. Довольно длительный отклик от приложения (загрузка страницы, первый запрос около 5 сек) .
2. Не обновляется приложение, запущенное в докере при изменении исходников. Имеется ввиду фронтэнд, с запущенным Vite в dev-режиме.
В доке Vite есть следующее предупреждение
When running Vite on WSL2, file system watching does not work when a file is edited by Windows applications (non-WSL2 process). This is due to a WSL2 limitation. This also applies to running on Docker with a WSL2 backend.
To fix it, you could either:
Recommended: Use WSL2 applications to edit your files.
It is also recommended to move the project folder outside of a Windows filesystem. Accessing Windows filesystem from WSL2 is slow. Removing that overhead will improve performance.
Set { usePolling: true }.
Note that usePolling leads to high CPU utilization
Мне непонятны два момента:
1.
Use WSL2 applications to edit your files. – что это за приложения?
2.
It is also recommended to move the project folder outside of a Windows filesystem – что имеется ввиду? Создать отдельный раздел на диске с ext4 или как?