You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can specify different environment variables if necessary using the `env` option.
47
47
48
+
## Middleware
49
+
50
+
The adapter exports a middleware `(req, res, next) => {}` that's compatible with [Express](https://github.com/expressjs/expressjs.com) / [Polka](https://github.com/lukeed/polka). Additionally, it also exports a reference server implementation using this middleware with a plain Node HTTP server.
51
+
52
+
But you can use your favorite server framework to combine it with other middleware and server logic. You can import `createHandler()`, your ready-to-use SvelteKit bundle as middleware, from `./build/handler.js`.
53
+
54
+
```
55
+
import { createHandler } from './build/handler.js';
0 commit comments