Spaces:
Runtime error
Runtime error
fix for codespaces
Browse files
frontend/vite.config.dev.ts
CHANGED
@@ -4,10 +4,10 @@ import type { UserConfig } from 'vite';
|
|
4 |
const config: UserConfig = {
|
5 |
plugins: [sveltekit()],
|
6 |
server: {
|
7 |
-
|
8 |
proxy: {
|
9 |
'/server': {
|
10 |
-
target: 'http://
|
11 |
changeOrigin: true,
|
12 |
cookieDomainRewrite: 'localhost',
|
13 |
rewrite: (path) => path.replace(/^\/server/, '')
|
|
|
4 |
const config: UserConfig = {
|
5 |
plugins: [sveltekit()],
|
6 |
server: {
|
7 |
+
host: "0.0.0.0",
|
8 |
proxy: {
|
9 |
'/server': {
|
10 |
+
target: 'http://0.0.0.0:7860',
|
11 |
changeOrigin: true,
|
12 |
cookieDomainRewrite: 'localhost',
|
13 |
rewrite: (path) => path.replace(/^\/server/, '')
|