Netlify Site: cute-smakager-b5551a.netlify.app
Folder Structure
app/
build/
_redirects
netlify.toml
studio/
package.json
pnpm-workspace.yaml
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:
build/
_app
_headers
_redirects
When I deploy through the sanity cli the following file browsers is set up like this:
cute-smakager-b5551a/
_app
netlify.toml
This is how I have the following files configured in the app directory
# netlify.toml
[build]
publish = "app/build"
base = "app"
# _redirects
/admin/* https://beautiful-lebkuchen-50d04e.netlify.app/:splat 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
/Users/sauldiaz/Desktop/Coding/Projects/svelte-sass-sanity-template/app
❯ Config file
/Users/sauldiaz/Desktop/Coding/Projects/svelte-sass-sanity-template/app/netlify.toml
❯ 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: https://app.netlify.com/sites/cute-smakager-b5551a/deploys/665b9e107c1671152dc02e09
Function logs: https://app.netlify.com/sites/cute-smakager-b5551a/functions
Unique deploy URL: https://665b9e107c1671152dc02e09--cute-smakager-b5551a.netlify.app
Website URL: https://cute-smakager-b5551a.netlify.app
-
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