Skip to content

New Vite plugin docs for local development #20586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 38 commits into from
Apr 7, 2025
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
7e7f416
Initial Vite plugin docs
jamesopstad Mar 3, 2025
3d72d85
Update src/content/docs/workers/vite-plugin/api.mdx
jamesopstad Mar 3, 2025
faa371a
Update src/content/docs/workers/vite-plugin/api.mdx
jamesopstad Mar 3, 2025
73499b9
adds a directory structure for local development docs, and adds a Vi…
korinne Mar 6, 2025
c8d8ead
Update src/content/docs/workers/local-development/vite.mdx
korinne Mar 7, 2025
c2d590d
Update src/content/docs/workers/local-development/wrangler.mdx
korinne Mar 7, 2025
87e01b5
fix some broken links
korinne Mar 7, 2025
086a3cc
Merge branch 'korinne-vite-plugin-docs' of github.com:cloudflare/clou…
korinne Mar 7, 2025
f6cf8a0
consolidates current local dev docs under new directory, and includes
korinne Mar 11, 2025
22dd07e
Uses new PackageManager component in local-development/wrangler.mdx
korinne Mar 11, 2025
66508f7
adds bindings_per_env.mdx under src/content/partials/workers
korinne Mar 11, 2025
0c9b53d
Adds guidance for when to use Wrangler vs Vite, adds Vite to the bind…
korinne Mar 17, 2025
547e15b
updates Wrangler local development guide, and partial for local vs re…
korinne Mar 17, 2025
69b09ff
updates overview page to make more concise
korinne Mar 17, 2025
b09d283
merge production
korinne Mar 18, 2025
4caed42
Merge branch 'production' of github.com:cloudflare/cloudflare-docs in…
korinne Mar 18, 2025
1556028
fixes broken links
korinne Mar 18, 2025
ac90adc
Update src/content/docs/workers/local-development/vite.mdx
korinne Mar 19, 2025
2dfae73
Update src/content/docs/workers/local-development/vite.mdx
korinne Mar 19, 2025
df19876
Update src/content/docs/workers/local-development/vite.mdx
korinne Mar 19, 2025
9d5202c
Update src/content/docs/workers/local-development/index.mdx
korinne Mar 19, 2025
64875a9
moves local development section nearer to testing section
korinne Mar 28, 2025
57de775
cleans up text in choosing between wrangler and vite
korinne Apr 2, 2025
9aaeb9c
updates overview page for local development
korinne Apr 2, 2025
7b3f858
update overview page, add working with data page
korinne Apr 4, 2025
7255613
updates local development docs
korinne Apr 5, 2025
f888bee
Merge branch 'production' of github.com:cloudflare/cloudflare-docs in…
korinne Apr 5, 2025
9af5af8
Update src/content/docs/workers/local-development/local-data.mdx
korinne Apr 7, 2025
b2766b8
Update src/content/docs/workers/local-development/local-data.mdx
korinne Apr 7, 2025
54bbee8
Update src/content/docs/workers/local-development/wrangler-vs-vite.mdx
korinne Apr 7, 2025
3a6d19a
Update src/content/docs/workers/local-development/remote-data.mdx
korinne Apr 7, 2025
32273fb
Update src/content/docs/workers/local-development/local-data.mdx
korinne Apr 7, 2025
a64d2ca
Update src/content/docs/workers/local-development/local-data.mdx
korinne Apr 7, 2025
d325a33
Update src/content/docs/workers/local-development/local-data.mdx
korinne Apr 7, 2025
9e0b348
Update src/content/docs/workers/local-development/index.mdx
korinne Apr 7, 2025
f302af4
adds updates to remove separate vite vs wrangler docs, small changes
korinne Apr 7, 2025
d2ae2db
updates local-data.mdx
korinne Apr 7, 2025
18f294b
Update src/content/docs/workers/local-development/remote-data.mdx
kodster28 Apr 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updates local-data.mdx
  • Loading branch information
korinne committed Apr 7, 2025
commit d2ae2db327bacae43d933600ded45efe687e88cb
3 changes: 1 addition & 2 deletions src/content/docs/workers/local-development/local-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ You may also include [other metadata](/workers/wrangler/commands/#r2-object-put)

### Durable Objects

For Durable Objects, unlike KV, D1, and R2, there are no CLI commands to populate them with test data. To add data to Durable Objects during local development, you must write application code that creates Durable Object instances and [calls methods on them that store state](/durable-objects/best-practices/access-durable-objects-storage/). This typically involves creating development endpoints or test routes that initialize your Durable Objects with the desired data.
For Durable Objects, unlike KV, D1, and R2, there are no CLI commands to populate them with local data. To add data to Durable Objects during local development, you must write application code that creates Durable Object instances and [calls methods on them that store state](/durable-objects/best-practices/access-durable-objects-storage/). This typically involves creating development endpoints or test routes that initialize your Durable Objects with the desired data.

## Where local data gets stored

Expand Down Expand Up @@ -151,4 +151,3 @@ export default defineConfig({
#### Sharing state between tools

If you want Wrangler and the Vite plugin to share the same state, configure them to use the same persistence path.

Loading