Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Failed to Run SvelteKit Project on Code Server #6964

Closed Unanswered
pokacrush asked this question in Q&A
Discussion options

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"}
	},
};

How to fix this?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /