Skip to content

Commit 9e84036

Browse files
committed
update vue a bit
1 parent 88a89d1 commit 9e84036

File tree

1 file changed

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

1 file changed

+5
-18
lines changed

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

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,6 @@ To use `create-cloudflare` to create a new Vue project with <InlineBadge preset=
2727
args={"--framework=vue --platform=workers"}
2828
/>
2929

30-
<Render
31-
file="c3-post-run-steps"
32-
product="workers"
33-
params={{
34-
category: "web-framework",
35-
framework: "Vue",
36-
}}
37-
/>
38-
39-
After setting up your project, change your directory by running the following command:
40-
41-
```sh
42-
cd my-vue-app
43-
```
44-
4530
## 2. Develop locally
4631

4732
After you have created your project, run the following command in the project directory to start a local server. This will allow you to preview your project locally during development.
@@ -58,12 +43,14 @@ The following command will build and deploy your project. If you are using CI, e
5843

5944
---
6045

61-
## Static assets
46+
## Asset Routing
6247

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.
48+
In most cases with a Vue application, you will want to set `not_found_handling = "single_page_application"` in your Wrangler configuration file.
6449

6550
<Render file="workers-assets-routing-summary" />
6651

6752
## Use bindings with Vue
6853

69-
Your new project also contains a Worker at `./server/index.ts`, which you can use as a backend API for your Vue application. While your Vue application cannot directly access Workers bindings, it can interact with them through this Worker. You can make [`fetch()` requests](/workers/runtime-apis/fetch/) from your Vue application to the Worker, which can then handle the request and use bindings. Learn how to [configure Workers bindings](/workers/runtime-apis/bindings/).
54+
Your new project also contains a Worker at `./server/index.ts`, which you can use as a backend API for your Vue application. While your Vue application cannot directly access Workers bindings, it can interact with them through this Worker. You can make [`fetch()` requests](/workers/runtime-apis/fetch/) from your Vue application to the Worker, which can then handle the request and use bindings.
55+
56+
<Render file="frameworks-bindings" />

0 commit comments

Comments
 (0)