Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

138
Views
SvelteKit page keeps on reloading page every 3-4s when serving localhost on https

I am serving my sveltekit application on https reverse proxied by caddy server on my local machine. Page is being served on https but it keeps on reloading every few seconds.

Command used to serve SvelteKit on https:

npm run dev -- --https

Reverse proxying using caddy server by

caddy reverse-proxy --to http://localhost:3000

How to resolve this?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Here is the issue related to this https://github.com/sveltejs/kit/issues/844

To serve localhost on https, solution is to override the protocol in your svelte kit configuration file

kit: {
        adapter: adapter(),
        vite: {
            server: {
                hmr: {
                    protocol: 'ws',
                }
            }
        },
        // hydrate the <div id="svelte"> element in src/app.html
        target: '#svelte'
    }
 
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!