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
Added a guide on proxying to a Svelte app since there wasn't one already. Used the vue and angular guides as a template and included a link to an issue post on sveltekits website which adds some context.
@@ -414,6 +415,27 @@ In order to use code-server's built-in proxy with Angular, you need to make the
414
415
415
416
For additional context, see [this GitHub Discussion](https://github.com/coder/code-server/discussions/5439#discussioncomment-3371983).
416
417
418
+
### Proxying to a Svelte app
419
+
420
+
In order to use code-server's built-in proxy with Svelte, you need to make the following changes in your app:
421
+
422
+
1. Add `svelte.config.js` if you don't already have one
423
+
2. Update the values to match this (you can use any free port):
424
+
425
+
```js
426
+
constconfig= {
427
+
kit: {
428
+
paths: {
429
+
base:"/absproxy/5173",
430
+
},
431
+
},
432
+
}
433
+
```
434
+
435
+
3. Access app at `<code-server-root>/absproxy/5173/` e.g. `http://localhost:8080/absproxy/5173/
436
+
437
+
For additional context, see [this Github Issue](https://github.com/sveltejs/kit/issues/2958)
438
+
417
439
## SSH into code-server on VS Code
418
440
419
441
[](https://ohmyz.sh/)[](https://img.shields.io/badge/Terminal-2E2E2E?style=for-the-badge&logo=Windows+Terminal&logoColor=ffffff)[](vscode:extension/ms-vscode-remote.remote-ssh)
0 commit comments