You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/frontend/vite.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,13 +26,29 @@ app = Application(
26
26
)
27
27
```
28
28
29
-
Publish the default config file:
29
+
Publish the default config and asset files:
30
30
31
31
```bash
32
-
python artisan vendor:publish --provider=vite
32
+
python artisan provider:publish --provider=vite
33
33
```
34
34
35
-
This creates `config/vite.py` in your project.
35
+
This creates the following files in your project:
36
+
37
+
-`config/vite.py`: FastAPI configuration for Vite.
38
+
-`package.json`: Vite dependencies and scripts.
39
+
-`vite.config.js`: Vite configuration with Tailwind CSS support.
40
+
-`resources/js/app.js`: Main JavaScript entry point.
41
+
-`resources/css/app.css`: Main CSS entry point.
42
+
43
+
After publishing, install the frontend dependencies and start the development server:
44
+
45
+
```bash
46
+
npm install
47
+
npm run dev
48
+
```
49
+
50
+
> [!NOTE]
51
+
> Ensure `APP_URL` in your `.env` matches your FastAPI server URL (e.g., `http://127.0.0.1:8000`) so that Vite's Hot Module Replacement (HMR) can correctly communicate with the backend.
0 commit comments