Deploying with cloudflare/pages-action but cannot locate sveltekit build directory

I am currently setting up a build script with https://github.com/cloudflare/pages-action I am using @sveltejs/adapter-cloudflare as my adapter as well which says the build directory is .sveltekit/cloudflare. However, github actions cannot find that directory. Docs here says: https://developers.cloudflare.com/pages/framework-guides/deploy-a-svelte-site/
@sveltejs/adapter-static Only produces client-side static assets (no server-side rendering) and is compatible with Cloudflare Pages. Review the official SvelteKit documentation for instructions on how to set up the adapter. Keep in mind that if you decide to use this adapter, the build directory, instead of .svelte-kit/cloudflare, becomes build. You must also configure your Cloudflare Pages application’s build directory accordingly.
Which means .sveltekit/cloudflare should be correct.
4 Replies
Cyb3r-Jak3
Cyb3r-Jak36mo ago
Can you share your repo if it is public?
sten
sten6mo ago
@Cyb3r-Jok3 Unfortunately, it's not public, however, I have opened a ticket here that contains the build script https://github.com/cloudflare/workers-sdk/issues/4659
Cyb3r-Jak3
Cyb3r-Jak36mo ago
Unless I’m missing something, you’re never actually building your project You probably need like an npm run build step
sten
sten6mo ago
You're 100% super correct sir. I just assumed it was taken cared for. But I totally missed their instruction: "# Run a build step here if your project requires" As I probably should mentioned, I am 100% build noob.