Closed socketopp closed 6 months ago
It seems like you aren't building your SvelteKit project - you'll want to run your build command first (by default this seems like npm run build
- https://kit.svelte.dev/docs/building-your-app) before you try and deploy.
Are you sure about that? It seems to me that the issue is that the path is doubling-up on the my_project
- i.e. the original issue says as the path /home/runner/work/my_project/my_project/
If you try to set workingDirectory
to /home/runner/work/my_project/
, it'll append that to the end, resulting in it trying to locate /home/runner/work/my_project/my_project/home/runner/work/my_project/
.
Setting workingDirectory
to ..
appears to resolve this doubling.
Which Cloudflare product(s) does this pertain to?
Pages, Wrangler core
What version(s) of the tool(s) are you using?
wrangler: 3.20.0
What version of Node are you using?
v18.17.0
What operating system are you using?
Windows
Describe the Bug
Following build error occurred when trying to deploy a Sveltekit page using adapter-cloudflare which says I should be using
.svelte-kit/cloudflare
as the build output directory.I am not a build expert and would really like to learn what's wrong here. I have been following the instructions in the cloudflare/pages-action project.
Here is the build script:
.github\workflows\publish.yml
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
The following command failed:
Here is a summary of the log: