Skip to content

Commit 26407a7

Browse files
committed
add vue docs
1 parent feae9e0 commit 26407a7

File tree

1 file changed

+11
-5
lines changed
  • src/content/docs/workers/frameworks/framework-guides

1 file changed

+11
-5
lines changed

src/content/docs/workers/frameworks/framework-guides/vue.mdx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ In this guide, you will create a new [Vue](https://vuejs.org/) application and d
1717

1818
## 1. Set up a new project
1919

20-
Use the [`create-cloudflare`](https://www.npmjs.com/package/create-cloudflare) CLI (C3) to set up a new project. C3 will create a new project directory, initiate Vue's official setup tool, and provide the option to deploy instantly.
20+
Use the [`create-cloudflare`](https://www.npmjs.com/package/create-cloudflare) CLI (C3) to set up a new project. C3 will create a new project directory, use code from the official Vue template, and provide the option to deploy instantly.
2121

2222
To use `create-cloudflare` to create a new Vue project with <InlineBadge preset="beta" /> Workers Assets, run the following command:
2323

2424
<PackageManagers
2525
type="create"
2626
pkg="cloudflare@latest my-vue-app"
27-
args={"--framework=vue --experimental"}
27+
args={"--framework=vue --platform=workers"}
2828
/>
2929

3030
<Render
@@ -48,16 +48,22 @@ After you have created your project, run the following command in the project di
4848

4949
<PackageManagers type="run" args={"dev"} />
5050

51-
## 3. Deploy your Project
51+
## 3. Deploy your project
5252

5353
Your project can be deployed to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), from your own machine or from any CI/CD system, including [Cloudflare's own](/workers/ci-cd/builds/).
5454

55-
The following command will build and deploy your project. If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/configuration/#build-settings) configuration appropriately.
55+
The following command will build and deploy your project. If you are using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/configuration/#build-settings) configuration appropriately.
5656

5757
<PackageManagers type="run" args={"deploy"} />
5858

5959
---
6060

6161
## Static assets
6262

63-
You can serve static assets your Vue application by placing them in [the `./public/` directory](https://www.gatsbyjs.com/docs/how-to/images-and-media/static-folder/). This can be useful for resource files such as images, stylesheets, fonts, and manifests.
63+
You can serve static assets in your Vue application by [placing them in the `./public/` directory](https://vite.dev/guide/assets#the-public-directory). This can be useful for resource files such as images, stylesheets, fonts, and manifests.
64+
65+
<Render file="workers-assets-routing-summary" />
66+
67+
## Bindings
68+
69+
Your new project also contains a Worker (at `./server/index.ts`), which you can use as a backend API for your Vue application. From this Worker, you can use bindings to access resources on the Cloudflare Developer Platform. Learn how to [configure Workers bindings](/workers/runtime-apis/bindings/).

0 commit comments

Comments
 (0)