Deno Middleware
Qwik City Deno middleware allows you to hook up Qwik City to a Deno server which uses the standard Request/Response that's well supported by Deno. Some Deno server implementations include:
Installation
To integrate the deno
adapter, use the add
command:
- For the integrated HTTP server:
npm run qwik add deno
Production build
To build the application for production, use the build
command, this command will automatically run npm run build.server
and npm run build.client
:
npm run build
Serve
To start the Deno server after a build:
npm run serve
Production deploy
Since you are choosing Deno, here you are in your own, after running npm run build
:
- The
dist
folder will be created including all the static files. - The
server
folder will be created including all node server files.
By default,
SSG
mode is activated. If you want to change this behavior, you can edit thevite.config.ts
file inside theadapters/deno
folder. In this file you can configure the behavior of theSSG
or remove the SSG part to switch to a completeSSR
.