Help with getting started with Caddy (Sveltekit)

1. The problem I’m having:

Hello, could someone please help me with the final step/steps of getting started with Caddy?
I want to host my sveltekit app. I´m completely new to this whole server stuff so please bear with me! I assume I have either missed some step or something wrong in my config file? Or pointing to the wrong map/file?

I have git cloned my repo and added it to /var/www and then i built it.

2. Error messages and/or full log output:

404 couldnt be found. I think some time it also said too many redirects but not 100% sure.

3. Caddy version:

2.6.4

4. How I installed and ran Caddy:

Through the Ubuntu command lines guide (caddys guide)

a. System environment:

Ubuntu 22.04 and trying to run a Sveltekit app

b. Command:

(for my app)
npm install
npm run build

(for caddy)
sudo systemctl start caddy
sudo systemctl restart caddy

d. My complete Caddy config:

example.com
root * /var/www/my-app/build
file_server

A post was merged into an existing topic: Help getting started with Caddyserver & Sveltekit app