Skip to content

Commit 8343a6c

Browse files
authored
Merge pull request #2019 from hydephp/update-realtime-compiler-documentation
Update realtime compiler documentation
2 parents 5eb06f6 + a97c309 commit 8343a6c

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

config/hyde.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,6 @@
449449
// Should the dashboard show tips?
450450
'tips' => true,
451451
],
452-
453452
],
454453

455454
/*

docs/extensions/realtime-compiler.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ This will start a local development server at `http://localhost:8080`
2121

2222
>warning Please note that the server is designed for local development, and should not be used on a public network.
2323
24+
### Options
25+
26+
- `--host=`: <comment>[default: "localhost"]</comment>
27+
- `--port=`: <comment>[default: 8080]</comment>
28+
- `--save-preview=`: Should the served page be saved to disk? (Overrides config setting)
29+
- `--dashboard=`: Enable the realtime compiler dashboard. (Overrides config setting)
30+
- `--pretty-urls=`: Enable pretty URLs. (Overrides config setting)
31+
- `--play-cdn=`: Enable the Tailwind Play CDN. (Overrides config setting)
32+
- `--open=false`: Open the site preview in the browser.
33+
2434
### Configuration
2535

2636
The server can be configured in the `config/hyde.php` file to change the port, host, and to customize its features.
@@ -29,9 +39,29 @@ The server can be configured in the `config/hyde.php` file to change the port, h
2939
// filepath config/hyde.php
3040

3141
'server' => [
42+
// The default port the preview is served on
3243
'port' => env('SERVER_PORT', 8080),
44+
45+
// The default host the preview is served on
3346
'host' => env('SERVER_HOST', 'localhost'),
47+
48+
// Should preview pages be saved to the output directory?
3449
'save_preview' => true,
50+
51+
// Should the live edit feature be enabled?
52+
'live_edit' => env('SERVER_LIVE_EDIT', true),
53+
54+
// Configure the realtime compiler dashboard
55+
'dashboard' => [
56+
// Should the realtime compiler dashboard be enabled?
57+
'enabled' => env('SERVER_DASHBOARD', true),
58+
59+
// Can the dashboard make edits to the project file system?
60+
'interactive' => true,
61+
62+
// Should the dashboard show tips?
63+
'tips' => true,
64+
],
3565
],
3666
```
3767

packages/framework/config/hyde.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,6 @@
449449
// Should the dashboard show tips?
450450
'tips' => true,
451451
],
452-
453452
],
454453

455454
/*

0 commit comments

Comments
 (0)