From 4b85066017f906021c23818f64a5065d13775fb3 Mon Sep 17 00:00:00 2001 From: Sobolev Sergey Date: Wed, 11 Oct 2023 16:38:53 +0300 Subject: [PATCH] docs: fix fastify link (#5298) --- packages/docs/src/routes/docs/deployments/node/index.mdx | 8 ++++---- starters/adapters/fastify/README.md | 2 +- starters/adapters/fastify/package.json | 2 +- starters/adapters/fastify/src/entry.fastify.tsx | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/docs/src/routes/docs/deployments/node/index.mdx b/packages/docs/src/routes/docs/deployments/node/index.mdx index df399e6f0f2..67f33ae195f 100644 --- a/packages/docs/src/routes/docs/deployments/node/index.mdx +++ b/packages/docs/src/routes/docs/deployments/node/index.mdx @@ -13,7 +13,7 @@ contributors: Qwik City Node middleware allows you to connect Qwik City to a Node.js server which uses the common middleware functionality. Some Node servers include: - [Express](https://expressjs.com/) -- [Fastify](https://fastify.io/) +- [Fastify](https://fastify.dev/) - [Connect](https://www.npmjs.com/package/connect) - [Polka](https://www.npmjs.com/package/polka) @@ -27,7 +27,7 @@ To integrate the `node` adapter, use the `add` command: npm run qwik add express ``` -- For [Fastify](https://fastify.io/) +- For [Fastify](https://fastify.dev/) ```shell npm run qwik add fastify @@ -56,7 +56,7 @@ Since you are choosing Node, here you are in your own, after running `npm run bu - The `dist` folder will be created including all the static files. - The `server` folder will be created including all node server files. -In order to deploy the server, you need to run the `server/entry.[server].js` file in the server of your choice, where `[server]` can be [express](https://expressjs.com/) or [fastify](https://fastify.io/). +In order to deploy the server, you need to run the `server/entry.[server].js` file in the server of your choice, where `[server]` can be [express](https://expressjs.com/) or [fastify](https://fastify.dev/). It's *very important to correctly configure the `ORIGIN` env variable*, which is used to check against [CSRF attacks](https://owasp.org/www-community/attacks/csrf). The origin must match the origin of the client application. @@ -83,4 +83,4 @@ const { router, notFound, staticFile } = createQwikCity({ checkOrigin: false, }); // ... -``` \ No newline at end of file +``` diff --git a/starters/adapters/fastify/README.md b/starters/adapters/fastify/README.md index bcd71c3a49a..b4749727e72 100644 --- a/starters/adapters/fastify/README.md +++ b/starters/adapters/fastify/README.md @@ -1,6 +1,6 @@ ## Fastify Server -This app has a minimal [Fastify server](https://fastify.io/) implementation. After running a full build, you can preview the build using the command: +This app has a minimal [Fastify server](https://fastify.dev/) implementation. After running a full build, you can preview the build using the command: ``` npm run serve diff --git a/starters/adapters/fastify/package.json b/starters/adapters/fastify/package.json index da95051dd0b..114fd8cbfcb 100644 --- a/starters/adapters/fastify/package.json +++ b/starters/adapters/fastify/package.json @@ -15,7 +15,7 @@ "displayName": "Adapter: Node.js Fastify Server", "docs": [ "https://qwik.builder.io/integrations/deployments/node/", - "https://www.fastify.io/" + "https://fastify.dev/" ], "nextSteps": { "title": "Next Steps", diff --git a/starters/adapters/fastify/src/entry.fastify.tsx b/starters/adapters/fastify/src/entry.fastify.tsx index 565163c4bec..3dece09f5d2 100644 --- a/starters/adapters/fastify/src/entry.fastify.tsx +++ b/starters/adapters/fastify/src/entry.fastify.tsx @@ -27,7 +27,7 @@ const HOST = process.env.HOST ?? "0.0.0.0"; const start = async () => { // Create the fastify server - // https://www.fastify.io/docs/latest/Guides/Getting-Started/ + // https://fastify.dev/docs/latest/Guides/Getting-Started/ const fastify = Fastify({ logger: true, });