Skip to content

Commit

Permalink
Document realtime compiler config options
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Oct 22, 2023
1 parent 1d3ef39 commit cedc566
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
11 changes: 11 additions & 0 deletions config/hyde.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,22 @@
*/

'server' => [
// The default port the preview is served on
'port' => env('SERVER_PORT', 8080),

// The default host the preview is served on
'host' => env('SERVER_HOST', 'localhost'),

// Should the realtime compiler dashboard be enabled?
'dashboard' => env('SERVER_DASHBOARD', true),

// Can the dashboard make edits to the project file system?
'dashboard_editor' => true,

// Should the dashboard show tips?
'dashboard_tips' => true,

// Should preview pages be saved to the output directory?
'save_preview' => true,
],

Expand Down
11 changes: 11 additions & 0 deletions packages/framework/config/hyde.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,22 @@
*/

'server' => [
// The default port the preview is served on
'port' => env('SERVER_PORT', 8080),

// The default host the preview is served on
'host' => env('SERVER_HOST', 'localhost'),

// Should the realtime compiler dashboard be enabled?
'dashboard' => env('SERVER_DASHBOARD', true),

// Can the dashboard make edits to the project file system?
'dashboard_editor' => true,

// Should the dashboard show tips?
'dashboard_tips' => true,

// Should preview pages be saved to the output directory?
'save_preview' => true,
],

Expand Down
4 changes: 2 additions & 2 deletions packages/realtime-compiler/src/Http/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class DashboardController
'This dashboard won\'t be saved to your static site.',
'Got stuck? Ask for help on [GitHub](https://github.com/hydephp/hyde)!',
'Found a bug? Please report it on [GitHub](https://github.com/hydephp/hyde)!',
'You can disable tips using by setting `server.tips` to `false` in `config/hyde.php`.',
'The dashboard can make changes to your project files. You can disable this by setting `server.editor` to `false` in `config/hyde.php`.',
'You can disable tips using by setting `server.dashboard_tips` to `false` in `config/hyde.php`.',
'The dashboard update your project files. You can disable this by setting `server.dashboard_editor` to `false` in `config/hyde.php`.',
];

public function __construct()
Expand Down

0 comments on commit cedc566

Please sign in to comment.