Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default app;

## 3. Create a database

You will now create a D1 database. In Wrangler v2, there is support for the `wrangler d1` subcommand, which allows you to create and query your D1 databases directly from the command line. Create a new database with `wrangler d1 create`:
You will now create a D1 database. In Wrangler, there is support for the `wrangler d1` subcommand, which allows you to create and query your D1 databases directly from the command line. Create a new database with `wrangler d1 create`:

```sh
npx wrangler d1 create d1-example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,6 @@ env:
- CLOUDFLARE_API_TOKEN: { $CLOUDFLARE_API_TOKEN }
```

In the code block above you have specified the language as `node_js` and listed the value as `18.0.0` because Wrangler v2 depends on this Node version or higher. You have also set branches you want your continuous integration to run on. Finally, input your `PROJECT NAME` in the script section and your CI process should work as expected.
This will set the Node.js version to 18. You have also set branches you want your continuous integration to run on. Finally, input your `PROJECT NAME` in the script section and your CI process should work as expected.

You can also modify the Wrangler command with any [`wrangler pages deploy` options](/workers/wrangler/commands/#deploy-1).
2 changes: 1 addition & 1 deletion src/content/docs/workers/wrangler/custom-builds.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Custom builds are a way for you to customize how your code is compiled, before b

:::note

With the release of Wrangler v2, it is no longer necessary to use custom builds to bundle your code via webpack and similar bundlers. Wrangler runs [esbuild](https://esbuild.github.io/) by default as part of the `dev` and `publish` commands, and bundles your Worker project into a single Worker script. Refer to [Bundling](/workers/wrangler/bundling/).
Wrangler runs [esbuild](https://esbuild.github.io/) by default as part of the `dev` and `publish` commands, and bundles your Worker project into a single Worker script. Refer to [Bundling](/workers/wrangler/bundling/).
:::

## Configure custom builds
Expand Down
12 changes: 0 additions & 12 deletions src/content/partials/kv/tutorials-wrangler-v1-warning.mdx

This file was deleted.

12 changes: 0 additions & 12 deletions src/content/partials/workers/tutorials-wrangler-v1-warning.mdx

This file was deleted.

12 changes: 0 additions & 12 deletions src/content/partials/workers/wrangler-v1-deprecation.mdx

This file was deleted.

Loading