From 428a85aa99fdee52478c961d2e8baac0cdf25248 Mon Sep 17 00:00:00 2001 From: Thibault RICHARD Date: Thu, 24 Jun 2021 11:38:50 +0200 Subject: [PATCH] Fix compatibility with Webpack-Encore in bref/symfony-bridge At the moment the whole `public/build` directory is excluded. This means the `entrypoints.json` and `manifest.json` files are also excluded but are required by Symfony to resolve filenames correctly and load Encore entrypoints in Twig. Without this, people would get a 500 error when deploying on Lambda. --- bref/symfony-bridge/0.1/serverless.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bref/symfony-bridge/0.1/serverless.yaml b/bref/symfony-bridge/0.1/serverless.yaml index 1e774305..8c0c5373 100644 --- a/bref/symfony-bridge/0.1/serverless.yaml +++ b/bref/symfony-bridge/0.1/serverless.yaml @@ -43,3 +43,5 @@ package: # If you want to include files and folders that are part of excluded folders, # add them at the end - 'var/cache/prod/**' + - 'public/build/entrypoints.json' + - 'public/build/manifest.json'