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
I am trying to run a SvelteKit project using code-server. When I run pnpm run dev and visit [url]/proxy/5173, it returns
connect ECONNREFUSED 0.0.0.0:5173
I tried adding the base:“/absproxy/5173” to svelte.config.js and visiting [url]/absproxy/5173, but it still returned the same result.
svelte.config.js
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter(),
paths:{ base: "/absproxy/5173"}
},
};
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to run a SvelteKit project using code-server. When I run
pnpm run dev
and visit [url]/proxy/5173, it returnsconnect ECONNREFUSED 0.0.0.0:5173
I tried adding the base:“/absproxy/5173” to svelte.config.js and visiting [url]/absproxy/5173, but it still returned the same result.
How to fix this?
Beta Was this translation helpful? Give feedback.
All reactions