Location of `wrangler.jsonc` file in sveltekit app on cloudflare workers.

I have a Sveltekit app where I am trying to locate the wrangler.jsonc file in a config sub-directory and . My svelte.config.js file is as follows:
 import adapter from '@sveltejs/adapter-cloudflare';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

/** @type {import('@sveltejs/kit').Config} */
const config = {
    preprocess: vitePreprocess(),
    kit: {
        adapter: adapter({
            config: './config/wrangler.jsonc'
        })
    }
};

export default config;

The app deploys if the wrangler is in root but when i move it to the config directory it fails with the following message:

⛅️ wrangler 4.53.0


[ERROR] Missing entry-point to Worker script or to assets directory

If there is code to deploy, you can either:
  • Specify an entry-point to your Worker script via the command line (ex: pnpm wrangler deploy src/index.ts)
  • Or create a "wrangler.jsonc" file containing:```{"name": "worker-name","compatibility_date": "2025-12-09","main": "src/index.ts"}```
Its definelty seeing the file as if its not present I get a cannot read error. Is it possible to have the wrangler in a dirctory other than root?
Was this page helpful?