Error Page after Deploying Sveltekit through Netlify CLI

Netlify Site:

Folder Structure


I’ve referenced multiple forums on Netlify and Sveltekit Forums but I’m still struggling to resolve it.
It seems to me that when deploy through the netlify cli it is not accessing the build directory but possibly the base path.
Many of the sveltekit projects I deploy through github, the deploy file browser is set up with the following:


When I deploy through the sanity cli the following file browsers is set up like this:


This is how I have the following files configured in the app directory

# netlify.toml

publish = "app/build"
base = "app"
# _redirects

/admin/* 200
import adapter from '@sveltejs/adapter-netlify';

const config = {
    adapter: adapater({
	edge: false,
	split: true

The build directory is created in the app directory and it is the same structure as the sveltekit projects that are deployed through github but it comes out different once I deploy it through netlify cli.

netlify deploy --prod

We've detected multiple sites inside your repository
? Select the site you want to work with app  app  --filter app
Deploy path:        /Users/sauldiaz/Desktop/Coding/Projects/svelte-sass-sanity-template/app/build
Configuration path: /Users/sauldiaz/Desktop/Coding/Projects/svelte-sass-sanity-template/app/netlify.toml
Deploying to main site URL...
⠋ Uploading blobs to deploy store...

Netlify Build                                                 

❯ Version
  @netlify/build 29.46.0

❯ Flags
  deployId: 665b9e107c1671152dc02e09
  open: false
  packagePath: app
  prod: true
  prodIfUnlocked: false
  skipFunctionsCache: false

❯ Current directory

❯ Config file

❯ Context
✔ Finished uploading blobs to deploy store
✔ No cached functions were found
✔ Finished hashing 
✔ CDN requesting 0 files
✔ Finished uploading 0 assets
✔ Deploy is live!

Build logs:
Function logs:
Unique deploy URL:
Website URL:
  • I reference this forum where they created a new sveltekit project and deploying it immediatley to Netlify but I still received a 404 page

  • I feel like it could possibly be that the functions are being placed in the wrong location as mentioned in this issue because there are no functions running when it should be running sveltekit-render

Thank you

The command you might want to use is netlify deploy --build --prod. The --build is important.

Unfortunately I still received the same output and it’s still giving me a 404 page

The site seems to be deleted. Do you still need help?

Sorry about that. I’ve been recreating the website every time to figure out the issue. I decided to take a different approach to resolve my issue, but it’s not the approach I wanted to go for. Right now I’m having an issue from the Sveltekit adapter as there is a caching problem going on that I’m struggling to get rid of when I run netlify deploy . (It won’t stop creating a function directory I set up before on netlify.toml). I’m planning on dealing with the issue much later now as this other approach is going well for me.