From af727f0159b66ded118b28df553e65116de6901f Mon Sep 17 00:00:00 2001 From: Tim Spratt Date: Tue, 8 Oct 2019 15:31:23 +0100 Subject: [PATCH] allow engine to be changed using env use case for this is local development using node engine, and then push to live ubuntu server which would use php with v8js compiled --- config/ssr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/ssr.php b/config/ssr.php index 7d08e8e..08f69e5 100644 --- a/config/ssr.php +++ b/config/ssr.php @@ -25,7 +25,7 @@ * up some extra configuration below. If you want to use the V8 engine, make * sure the v8js php extension is available. */ - 'engine' => \Spatie\Ssr\Engines\Node::class, + 'engine' => env('SSR_ENGINE', \Spatie\Ssr\Engines\Node::class), /* * Extra setup for the Node engine.