Skip to content

Commit 9bedf0c

Browse files
committed
Updates docs for hot reload
1 parent d6bd79a commit 9bedf0c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

resources/views/docs/mobile/1/getting-started/development.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,37 @@ changes to any files in your Laravel app, the web view will be reloaded and your
111111

112112
The proper way to implement this is to first `run` your app on your device/emulator, then start HMR with `npm run dev` then in a separate terminal run the `native:watch` command. This will reload any Blade/Livewire files as well as any recompiled assets (css/js etc).
113113

114+
<aside class="relative z-0 mt-5 overflow-hidden rounded-2xl bg-pink-50 px-5 ring-1 ring-black/5 dark:bg-pink-600/10">
115+
116+
#### Note
117+
118+
119+
120+
```php
121+
'hot_reload' => [
122+
'watch_paths' => [
123+
'app',
124+
'routes',
125+
'config',
126+
'database',
127+
// Make sure "public" is listed in your config [tl! highlight:1]
128+
'public',
129+
],
130+
]
131+
```
132+
```js
133+
// And update your vite.config.ts
134+
server: {
135+
port: 5173,
136+
cors: true,
137+
hmr: {
138+
host: '127.0.0.1',
139+
},
140+
},
141+
```
142+
143+
</aside>
144+
114145
## Releasing
115146

116147
To prepare your app for release, you should set the version number to a new version number that you have not used

0 commit comments

Comments
 (0)