Various little fixes and improvements

This commit is contained in:
Kacper Donat 2020-02-23 15:23:14 +01:00
parent a9a0f2f413
commit 45004444e6
3 changed files with 9 additions and 4 deletions

View File

@ -1,2 +1 @@
XDEBUG_CONFIG=remote_host=172.17.0.1 remote_port=9001
PHP_IDE_CONFIG=serverName=czydojade

View File

@ -1,5 +1,7 @@
FROM php:7.3-fpm
ARG XDEBUG_REMOTE_HOST="172.17.0.1"
RUN apt-get update && \
apt-get install -y --no-install-recommends git zip libzip-dev
@ -7,7 +9,8 @@ RUN docker-php-ext-install zip
RUN pecl install xdebug-2.9.0 && docker-php-ext-enable xdebug
RUN echo "xdebug.remote_enable = 1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini;
RUN echo "xdebug.remote_enable = 1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
echo "xdebug.remote_host = ${XDEBUG_REMOTE_HOST}" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini;
RUN echo "date.timezone = Europe/Warsaw" >> /usr/local/etc/php/conf.d/datetime.ini;
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

View File

@ -66,8 +66,11 @@ const config = {
new GenerateSW({
navigationPreload: true,
runtimeCaching: [{
urlPattern: ({event}) => event.request.mode === 'navigate',
handler: 'NetworkFirst',
urlPattern: ({ event }) => event.request.mode === 'navigate',
handler: 'NetworkFirst',
}, {
urlPattern: /^https?:\/\/api\.maptiler\.com\//,
handler: 'CacheFirst',
}],
swDest: '../service-worker.js'
})