From a13e7fd538628b0ebc1c1b0a9893a5b36b2b32d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Mon, 24 Nov 2025 16:58:51 +0100 Subject: [PATCH] feat(Docker): Add Wayfinder route generation and update asset build process --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 513dfc7c..f6fb1d13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,9 +49,14 @@ RUN mkdir -p /var/log/nginx && mkdir -p /var/cache/nginx # Install PHP dependencies RUN composer install --no-dev --optimize-autoloader -# Install Node.js dependencies and build assets +# Install Node.js dependencies RUN bun install --frozen-lockfile -RUN bun run build + +# Generate Wayfinder routes before building +RUN php artisan wayfinder:generate + +# Build assets +RUN bun run build:ssr # Copy supervisor configuration COPY docker/supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf