How to use deploy functions with a svelte project using wrangler?

I have a simple Svelte project built and deployed to CF Pages with Wrangler. Since then, I've added a /functions/helloworld.js and after I redeploy the code and try to hit /helloworld I get a 404. When I look in the dashboard I also don't see any mention of helloworld
1 Reply
hungrynomad
hungrynomad12mo ago
I tried disabling it in svelte.config.js
import adapter from "@sveltejs/adapter-cloudflare";

/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter({
ssr: false,
})
}
};

export default config;
import adapter from "@sveltejs/adapter-cloudflare";

/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter({
ssr: false,
})
}
};

export default config;
Then ran npm run pages:deploy and it still give me a 404 OK, thank you, I'll have to play around with that more. I appreciate the help.