Skip to content

Commit

Permalink
docs: fix fastify link (QwikDev#5298)
Browse files Browse the repository at this point in the history
  • Loading branch information
Craiqser authored Oct 11, 2023
1 parent dec9d56 commit 4b85066
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions packages/docs/src/routes/docs/deployments/node/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down Expand Up @@ -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.

Expand All @@ -83,4 +83,4 @@ const { router, notFound, staticFile } = createQwikCity({
checkOrigin: false,
});
// ...
```
```
2 changes: 1 addition & 1 deletion starters/adapters/fastify/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion starters/adapters/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion starters/adapters/fastify/src/entry.fastify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 4b85066

Please sign in to comment.