File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,21 @@ Deploy Fresh to Cloudflare Workers by following these instructions:
2020 });
2121```
2222
23- 3 . Follow further instructions provided by the cloudflare vite plugin.
23+ 3 . Create a ` server.js ` file that serves as the cloudflare worker entry file:
24+
25+ ``` js
26+ import server from " ./_fresh/server.js" ;
27+
28+ export default {
29+ fetch: server .fetch ,
30+ };
31+ ```
32+
33+ 4 . Follow further instructions provided by the cloudflare vite plugin.
2434
2535Check out the
2636[ Cloudflare Documentation] ( https://developers.cloudflare.com/workers/vite-plugin/ )
2737for further information.
2838
2939> [ info] : Make sure that you set the the correct entrypoint in your
30- > ` wrangler.jsonc ` file. It should point to ` "main": "./_fresh/ server.js" `
40+ > ` wrangler.jsonc ` file. It should point to ` "main": "./server.js" `
You can’t perform that action at this time.
0 commit comments