-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Changes from 27 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
7e7f416
Initial Vite plugin docs
jamesopstad 3d72d85
Update src/content/docs/workers/vite-plugin/api.mdx
jamesopstad faa371a
Update src/content/docs/workers/vite-plugin/api.mdx
jamesopstad 73499b9
adds a directory structure for local development docs, and adds a Vi…
korinne c8d8ead
Update src/content/docs/workers/local-development/vite.mdx
korinne c2d590d
Update src/content/docs/workers/local-development/wrangler.mdx
korinne 87e01b5
fix some broken links
korinne 086a3cc
Merge branch 'korinne-vite-plugin-docs' of github.com:cloudflare/clou…
korinne f6cf8a0
consolidates current local dev docs under new directory, and includes
korinne 22dd07e
Uses new PackageManager component in local-development/wrangler.mdx
korinne 66508f7
adds bindings_per_env.mdx under src/content/partials/workers
korinne 0c9b53d
Adds guidance for when to use Wrangler vs Vite, adds Vite to the bind…
korinne 547e15b
updates Wrangler local development guide, and partial for local vs re…
korinne 69b09ff
updates overview page to make more concise
korinne b09d283
merge production
korinne 4caed42
Merge branch 'production' of github.com:cloudflare/cloudflare-docs in…
korinne 1556028
fixes broken links
korinne ac90adc
Update src/content/docs/workers/local-development/vite.mdx
korinne 2dfae73
Update src/content/docs/workers/local-development/vite.mdx
korinne df19876
Update src/content/docs/workers/local-development/vite.mdx
korinne 9d5202c
Update src/content/docs/workers/local-development/index.mdx
korinne 64875a9
moves local development section nearer to testing section
korinne 57de775
cleans up text in choosing between wrangler and vite
korinne 9aaeb9c
updates overview page for local development
korinne 7b3f858
update overview page, add working with data page
korinne 7255613
updates local development docs
korinne f888bee
Merge branch 'production' of github.com:cloudflare/cloudflare-docs in…
korinne 9af5af8
Update src/content/docs/workers/local-development/local-data.mdx
korinne b2766b8
Update src/content/docs/workers/local-development/local-data.mdx
korinne 54bbee8
Update src/content/docs/workers/local-development/wrangler-vs-vite.mdx
korinne 3a6d19a
Update src/content/docs/workers/local-development/remote-data.mdx
korinne 32273fb
Update src/content/docs/workers/local-development/local-data.mdx
korinne a64d2ca
Update src/content/docs/workers/local-development/local-data.mdx
korinne d325a33
Update src/content/docs/workers/local-development/local-data.mdx
korinne 9e0b348
Update src/content/docs/workers/local-development/index.mdx
korinne f302af4
adds updates to remove separate vite vs wrangler docs, small changes
korinne d2ae2db
updates local-data.mdx
korinne 18f294b
Update src/content/docs/workers/local-development/remote-data.mdx
kodster28 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/content/docs/workers/local-development/bindings-per-env.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| pcx_content_type: navigation | ||
| title: Supported bindings in local and remote dev | ||
| sidebar: | ||
| order: 4 | ||
| head: [] | ||
| description: Supported bindings in local and remote development | ||
| --- | ||
|
|
||
| import { Render } from "~/components"; | ||
|
|
||
| <Render file="bindings_per_env" /> |
80 changes: 80 additions & 0 deletions
80
src/content/docs/workers/local-development/environment-variables.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,80 @@ | ||||||
| --- | ||||||
| pcx_content_type: navigation | ||||||
| title: Environment variables and secrets | ||||||
| sidebar: | ||||||
| order: 1 | ||||||
| head: [] | ||||||
| description: Configuring environment variables and secrets for local development | ||||||
| --- | ||||||
|
|
||||||
| import { Aside, PackageManagers, Steps } from "~/components"; | ||||||
|
|
||||||
| During local development, you may need to configure **environment variables** (such as API URLs, feature flags) and **secrets** (API tokens, private keys). You can use a `.dev.vars` file in the root of your project to override environment variables for local development, and both [Wrangler](/workers/configuration/environment-variables/#compare-secrets-and-environment-variables) and the [Vite plugin](/workers/vite-plugin/reference/secrets/) will respect this override. | ||||||
|
|
||||||
| <Aside type="caution"> | ||||||
| Be sure to add `.dev.vars` to your `.gitignore` so it never gets committed. | ||||||
| </Aside> | ||||||
|
|
||||||
| ### Why use a `.dev.vars` file? | ||||||
|
|
||||||
| While [`.dev.vars` is commonly used for storing secrets](/workers/configuration/environment-variables/#compare-secrets-and-environment-variables), the file is really just a local override for **any** environment variable — secret or otherwise. This allows you to avoid polluting environment variables in your Wrangler configuration, and provide a way to set local-only values. | ||||||
korinne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| You can also define [environment variables as `[vars]`](/workers/wrangler/environments/#_top) in your Wrangler configuration (for `development`, `staging`, `production`, etc). This is a good way to manage environment-based configuration that you **want checked into your repository** (for example, non-sensitive or shared environment defaults). Using a `.dev.vars` file is specifically for local-only secrets or configuration that you do not want in version control and only want to inject in local dev sessions. | ||||||
korinne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| ## Basic setup | ||||||
|
|
||||||
| <Steps> | ||||||
|
|
||||||
| 1. Create a `.dev.vars` file in your project root. | ||||||
|
|
||||||
| 2. Add key-value pairs: | ||||||
|
|
||||||
| ```ini title=".dev.vars" | ||||||
| API_HOST="localhost:3000" | ||||||
| DEBUG="true" | ||||||
| SECRET_TOKEN="my-local-secret-token" | ||||||
| ``` | ||||||
|
|
||||||
| 3. Run your `dev` command | ||||||
|
|
||||||
| **Wrangler** | ||||||
| <PackageManagers type="exec" pkg="wrangler" args="dev" /> | ||||||
|
|
||||||
|
|
||||||
| **Vite plugin** | ||||||
| <PackageManagers type="run" args="dev" /> | ||||||
korinne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| </Steps> | ||||||
|
|
||||||
| ## Multiple local environments with `.dev.vars` | ||||||
|
|
||||||
| To simulate different local environments, you can: | ||||||
|
|
||||||
| <Steps> | ||||||
|
|
||||||
| 1. Create a file named `.dev.vars.<environment-name>` . For example, we'll use `.dev.vars.staging`. | ||||||
|
|
||||||
| 2. Add key-value pairs: | ||||||
| ```ini title=".dev.vars.staging" | ||||||
| API_HOST="staging.localhost:3000" | ||||||
| DEBUG="false" | ||||||
| SECRET_TOKEN="staging-token" | ||||||
| ``` | ||||||
| 3. Run your `dev` command with an `--env` flag: | ||||||
korinne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| **Wrangler** | ||||||
|
|
||||||
| <PackageManagers type="exec" pkg="wrangler" args="dev --env staging" /> | ||||||
|
|
||||||
| **Vite plugin** | ||||||
|
|
||||||
| <PackageManagers type="run" args="dev --env staging" /> | ||||||
korinne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| Only the values from `.dev.vars.staging` will be applied instead of `.dev.vars`. | ||||||
|
|
||||||
| </Steps> | ||||||
|
|
||||||
| ## Learn more | ||||||
|
|
||||||
| - To learn how to configure multiple environments in Wrangler configuration, [read the documenation](/workers/wrangler/environments/#_top). | ||||||
| - To learn how to use Wrangler environments and Vite environments together, [read the Vite plugin documentation](/workers/vite-plugin/reference/cloudflare-environments/) | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| --- | ||
| pcx_content_type: navigation | ||
| title: Local development | ||
| sidebar: | ||
| order: 6 | ||
| head: [] | ||
| description: Develop your Workers locally. | ||
| --- | ||
|
|
||
| import { Details, LinkCard, Render, PackageManagers } from "~/components"; | ||
|
|
||
| When building projects on Cloudflare Workers, you have two options for local development: | ||
|
|
||
| - [**Wrangler**](/workers/wrangler/), using the built-in [`wrangler dev`](/workers/wrangler/commands/#dev) command. | ||
| - [Vite](https://vite.dev/), using the [**Cloudflare Vite plugin**](/workers/vite-plugin/). | ||
|
|
||
| Both Wrangler and the Vite plugin use [Miniflare](/workers/testing/miniflare/) to provide an accurate **local** simulation of the Cloudflare Workers runtime, ([`workerd`](https://github.com/cloudflare/workerd)). If you need to [develop with **remote resources**](/workers/local-development/remote-data/), Wrangler is the only option that provides remote development with the `wrangler dev --remote` command. | ||
korinne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| <LinkCard | ||
| title="Choosing between Wrangler and Vite" | ||
| href="/workers/local-development/wrangler-vs-vite/" | ||
| /> | ||
|
|
||
| ## Install and start your development server | ||
|
|
||
| ### Wrangler | ||
|
|
||
| #### Installation | ||
|
|
||
| To install [Wrangler](https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler), ensure you have [Node.js](https://nodejs.org/en/) and [npm](https://docs.npmjs.com/getting-started) installed, preferably using a Node version manager like [Volta](https://volta.sh/) or [nvm](https://github.com/nvm-sh/nvm). | ||
|
|
||
| <Render file="install_wrangler" /> | ||
|
|
||
| #### Start a development server | ||
|
|
||
| To start a development server using Wrangler, run the following: | ||
|
|
||
| <PackageManagers type="exec" pkg="wrangler" args="dev" /> | ||
|
|
||
korinne marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <LinkCard title="Learn more about Wrangler" href="/workers/wrangler/" /> | ||
|
|
||
| ### Vite Plugin | ||
|
|
||
| #### Installation | ||
|
|
||
| To install the Cloudflare Vite plugin, first start with a simple `package.json` | ||
korinne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ```json title="package.json" | ||
| { | ||
| "name": "cloudflare-vite-get-started", | ||
| "private": true, | ||
| "version": "0.0.0", | ||
| "type": "module", | ||
| "scripts": { | ||
| "dev": "vite dev", | ||
| "build": "vite build", | ||
| "preview": "npm run build && vite preview", | ||
| "deploy": "npm run build && wrangler deploy" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| Then, install the necessary development depenencies: | ||
|
|
||
| <PackageManagers type="add" pkg="vite @cloudflare/vite-plugin wrangler" dev /> | ||
|
|
||
| This command will install `vite`, along with `@cloudflare/vite-plugin` and `wrangler` as `devDependencies` in your `package.json`. | ||
|
|
||
| #### Start a development server | ||
|
|
||
| You can then start a development server by running: | ||
|
|
||
| <PackageManagers type="run" args="dev" /> | ||
|
|
||
| <LinkCard | ||
| title="Learn more about the Vite plugin" | ||
| href="/workers/vite-plugin/" | ||
| /> | ||
korinne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
166 changes: 166 additions & 0 deletions
166
src/content/docs/workers/local-development/local-data.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,166 @@ | ||||||
| --- | ||||||
| pcx_content_type: navigation | ||||||
| title: Local data | ||||||
| sidebar: | ||||||
| order: 2 | ||||||
| head: [] | ||||||
| description: Working with data during local development | ||||||
| --- | ||||||
|
|
||||||
| import { | ||||||
| Details, | ||||||
| LinkCard, | ||||||
| Render, | ||||||
| PackageManagers, | ||||||
| FileTree, | ||||||
| Aside, | ||||||
| } from "~/components"; | ||||||
|
|
||||||
| Whether you are using Wrangler or the [Cloudflare Vite plugin](https://developers.cloudflare.com/workers/vite-plugin/), your workflow for **accessing** data during local development remains the same. However, you can only [populate local resources with data](/workers/local-development/local-data/#populating-local-resources-with-data) via the Wrangler CLI. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| ### How it works | ||||||
|
|
||||||
| When you run either `wrangler dev` or [`vite`](https://vite.dev/guide/cli#dev-server), [Miniflare](/workers/testing/miniflare/) automatically creates **local versions** of your resources (like [KV](/kv), [D1](/d1/), or [R2](/r2)). This means you **don’t** need to manually set up separate local instances for each service. However, newly created local resources **won’t** contain any data — you'll need to use Wrangler commands with the `--local` flag to populate them. Changes made to local resources won’t affect production data. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| ## Populating local resources with data | ||||||
|
|
||||||
| When you first start developing, your local resources will be empty. You'll need to populate them with data for testing, using the Wrangler CLI. The Vite plugin doesn't provide any special functionality for populating data - it relies entirely on Wrangler CLI commands with the `--local` flag. | ||||||
korinne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| ### KV namespaces | ||||||
|
|
||||||
| <Aside type="caution" title="Syntax note"> | ||||||
|
|
||||||
| Since version 3.60.0, Wrangler supports the `kv ...` syntax. If you are using versions below 3.60.0, the command follows the `kv:...` syntax. Learn more about the deprecation of the `kv:...` syntax in the[Wrangler commands for KV page](/kv/reference/kv-commands/). | ||||||
korinne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| </Aside> | ||||||
|
|
||||||
| #### [Add a single key-value pair](/workers/wrangler/commands/#kv-key) | ||||||
|
|
||||||
| <PackageManagers | ||||||
| type="exec" | ||||||
| pkg="wrangler" | ||||||
| args="kv key put <KEY> <VALUE> --binding=<BINDING> --local " | ||||||
| /> | ||||||
|
|
||||||
| #### [Buld upload](/workers/wrangler/commands/#kv-bulk) | ||||||
|
|
||||||
| <PackageManagers | ||||||
| type="exec" | ||||||
| pkg="wrangler" | ||||||
| args="kv bulk put <FILENAME.json> --binding=<BINDING> --local" | ||||||
| /> | ||||||
|
|
||||||
| ### R2 buckets | ||||||
|
|
||||||
| #### [Upload a file](/workers/wrangler/commands/#r2-object) | ||||||
|
|
||||||
| <PackageManagers | ||||||
| type="exec" | ||||||
| pkg="wrangler" | ||||||
| args="r2 object put <BUCKET>/<KEY> --file=<PATH_TO_FILE> --local" | ||||||
| /> | ||||||
|
|
||||||
| You may also include [other metadata](/workers/wrangler/commands/#r2-object-put). | ||||||
|
|
||||||
| ### D1 databases | ||||||
|
|
||||||
| #### [Execute a SQL statement](/wrangler/commands/#d1-execute) | ||||||
korinne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| <PackageManagers | ||||||
| type="exec" | ||||||
| pkg="wrangler" | ||||||
| args='d1 execute <DATABASE_NAME> --command="<SQL_QUERY>" --local' | ||||||
| /> | ||||||
|
|
||||||
| #### [Execute a SQL file](/wrangler/commands/#d1-execute) | ||||||
korinne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| <PackageManagers | ||||||
| type="exec" | ||||||
| pkg="wrangler" | ||||||
| args="wrangler d1 execute <DATABASE_NAME> --file=./schema.sql --local" | ||||||
| /> | ||||||
|
|
||||||
| ### 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. | ||||||
korinne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| ## Where local data gets stored | ||||||
|
|
||||||
| By default, both Wrangler and the Vite plugin store local binding data in the same location: the `.wrangler/state` folder in your project directory. This folder stores data in subdirectories for all local bindings: KV namespaces, R2 buckets, D1 databases, Durable Objects, etc. | ||||||
|
|
||||||
| ### Clearing local storage | ||||||
|
|
||||||
| You can delete the `.wrangler/state` folder at any time to reset your local environment, and Miniflare will recreate it the next time you run your `dev` command. You can also delete specific sub-folders within `.wrangler/state` for more targeted clean-up. | ||||||
|
|
||||||
| ### Changing the local data directory | ||||||
|
|
||||||
| If you prefer to specify a different directory for local storage, you can do so through the Wranlger CLI or in the Vite plugin's configuration. | ||||||
|
|
||||||
| #### Using Wrangler | ||||||
|
|
||||||
| Use the [`--persist-to`](/workers/wrangler/commands/#dev) flag with `wrangler dev`. You need to specify this flag every time you run the `dev` command: | ||||||
|
|
||||||
| <PackageManagers | ||||||
| type="exec" | ||||||
| pkg="wrangler" | ||||||
| args="dev --persist-to <DIRECTORY>" | ||||||
| /> | ||||||
|
|
||||||
| :::note | ||||||
| The local persistence folder (like `.wrangler/state` or any custom folder you set) should be added to your `.gitignore` to avoid committing local development data to version control. | ||||||
| ::: | ||||||
|
|
||||||
| <Details header="Using `--local` with `--persist-to`"> | ||||||
| If you run `wrangler dev --persist-to <DIRECTORY>` to specify a custom location for local data, you must also include the same `--persist-to <DIRECTORY>` when running other Wrangler commands that modify local data (and be sure to include the `--local` flag). | ||||||
|
|
||||||
| For example, to create a KV key named `test` with a value of `12345` in a local KV namespace, run: | ||||||
|
|
||||||
| <PackageManagers | ||||||
| type="exec" | ||||||
| pkg="wrangler" | ||||||
| args="kv key put test 12345 --binding MY_KV_NAMESPACE --local --persist-to worker-local" | ||||||
| /> | ||||||
|
|
||||||
| This command: | ||||||
|
|
||||||
| - Sets the KV key `test` to `12345` in the binding `MY_KV_NAMESPACE` (defined in your [Wrangler configuration file](/workers/wrangler/configuration/)). | ||||||
| - Uses `--persist-to worker-local` to ensure the data is created in the **worker-local** directory instead of the default `.wrangler/state`. | ||||||
| - Adds the `--local` flag, indicating you want to modify local data. | ||||||
|
|
||||||
| If `--persist-to` is not specified, Wrangler defaults to using `.wrangler/state` for local data. | ||||||
|
|
||||||
| </Details> | ||||||
|
|
||||||
| #### Using the Cloudflare Vite plugin | ||||||
|
|
||||||
| To customize where the Vite plugin stores local data, configure the [`persistState` option](/workers/vite-plugin/reference/api/#interface-pluginconfig) in your Vite config file: | ||||||
|
|
||||||
| ```js title="vite.config.js" | ||||||
| import { defineConfig } from "vite"; | ||||||
| import { cloudflare } from "@cloudflare/vite-plugin"; | ||||||
|
|
||||||
| export default defineConfig({ | ||||||
| plugins: [ | ||||||
| cloudflare({ | ||||||
| persistState: "./my-custom-directory", | ||||||
| }), | ||||||
| ], | ||||||
| }); | ||||||
| ``` | ||||||
|
|
||||||
| #### 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. | ||||||
|
|
||||||
| ## Customize `wrangler dev` | ||||||
|
|
||||||
| You can further customize the behavior of `wrangler dev` (for instance, by changing ports or skipping Wrangler's build steps). Refer to [the `wrangler dev` documentation](/workers/wrangler/commands/#dev) for available configuration options. | ||||||
|
|
||||||
| ## Customize the Cloudflare Vite plugin | ||||||
|
|
||||||
| You can also [customize the Vite plugin](/workers/vite-plugin/reference/api/), such as changing ports or calling other Workers. | ||||||
|
|
||||||
| ## Debugging | ||||||
|
|
||||||
| - [DevTools](/workers/observability/dev-tools) - Guides to using DevTools to debug your Worker locally. | ||||||
| - [Debugging with the Vite plugin](/workers/vite-plugin/reference/debugging/) | ||||||
korinne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.