{"id":65,"date":"2025-12-08T00:00:00","date_gmt":"2025-12-08T00:00:00","guid":{"rendered":"https:\/\/wordpress.securinsight.ca\/index.php\/2025\/12\/08\/workers-wrangler-config-is-optional-when-using-vite-plugin\/"},"modified":"2025-12-08T00:00:00","modified_gmt":"2025-12-08T00:00:00","slug":"workers-wrangler-config-is-optional-when-using-vite-plugin","status":"publish","type":"post","link":"https:\/\/wordpress.securinsight.ca\/index.php\/2025\/12\/08\/workers-wrangler-config-is-optional-when-using-vite-plugin\/","title":{"rendered":"Workers &#8211; Wrangler config is optional when using Vite plugin"},"content":{"rendered":"<p>When using the <a href=\"https:\/\/developers.cloudflare.com\/workers\/vite-plugin\/\">Cloudflare Vite plugin<\/a> to build and deploy Workers, a Wrangler configuration file is now optional for assets-only (static) sites. If no <code>wrangler.toml<\/code>, <code>wrangler.json<\/code>, or <code>wrangler.jsonc<\/code> file is found, the plugin generates sensible defaults for an assets-only site. The <code>name<\/code> is based on the <code>package.json<\/code> or the project directory name, and the <code>compatibility_date<\/code> uses the latest date supported by your installed Miniflare version.<\/p>\n<p>This allows easier setup for static sites using Vite. Note that SPAs will still need to <a href=\"https:\/\/developers.cloudflare.com\/workers\/static-assets\/routing\/single-page-application\/\" target=\"_blank\">set <code>assets.not_found_handling<\/code> to <code>single-page-application<\/code><\/a> in order to function correctly.<\/p>","protected":false},"excerpt":{"rendered":"<p>When using the Cloudflare Vite plugin to build and deploy Workers, a Wrangler configuration file is now optional for assets-only (static) sites. If no wrangler.toml, wrangler.json, or wrangler.jsonc file is found, the plugin generates sensible defaults for an assets-only site. The name is based on the package.json or the project directory name, and the compatibility_date [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}