Skip to content

Commit

Permalink
allow engine to be changed using env
Browse files Browse the repository at this point in the history
use case for this is local development using node engine, and then push to live ubuntu server which would use php with v8js compiled
  • Loading branch information
timrspratt authored Oct 8, 2019
1 parent d36ad60 commit af727f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/ssr.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit af727f0

Please sign in to comment.