Commit f8fc579
committed
feat: Adds SPA fallback route to server
Implements a SPA fallback route that serves index.html for unmatched routes.
This enables client-side routing for dynamic routes when using embedded static files.
Excludes API routes from the fallback to ensure they are handled by dedicated handlers.
Also includes the required headers by pyodide (python interpreter)
Sets ssr to false in the layout.ts file to disable server-side rendering for the entire application.
This enables client-side rendering for the entire application.
Also refactors code copy function in Markdown component.1 parent 7e2ab2a commit f8fc579
File tree
3 files changed
+40
-1
lines changed- tools/server
- webui/src
- lib/components/app
- routes
3 files changed
+40
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4911 | 4911 | | |
4912 | 4912 | | |
4913 | 4913 | | |
| 4914 | + | |
| 4915 | + | |
| 4916 | + | |
| 4917 | + | |
| 4918 | + | |
| 4919 | + | |
| 4920 | + | |
| 4921 | + | |
| 4922 | + | |
| 4923 | + | |
| 4924 | + | |
| 4925 | + | |
| 4926 | + | |
| 4927 | + | |
| 4928 | + | |
| 4929 | + | |
| 4930 | + | |
| 4931 | + | |
| 4932 | + | |
| 4933 | + | |
| 4934 | + | |
| 4935 | + | |
| 4936 | + | |
| 4937 | + | |
| 4938 | + | |
| 4939 | + | |
| 4940 | + | |
| 4941 | + | |
| 4942 | + | |
| 4943 | + | |
| 4944 | + | |
| 4945 | + | |
| 4946 | + | |
| 4947 | + | |
| 4948 | + | |
| 4949 | + | |
4914 | 4950 | | |
4915 | 4951 | | |
4916 | 4952 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
146 | | - | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments