Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Sep 13, 2021
1 parent 2b4469d commit 943c1ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/adapter-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,20 @@ import polka from 'polka';

const app = polka();

const myMiddleware = function(req, res, next) {
console.log('Hello world!');
next();
const myMiddleware = function (req, res, next) {
console.log('Hello world!');
next();
};

app.use(myMiddleware);

app.get('/no-svelte', (req, res) => {
res.end('This is not Svelte!')
res.end('This is not Svelte!');
});

app.use(assetsMiddleware, prerenderedMiddleware, kitMiddleware);

app.listen(3000)
app.listen(3000);
```

For using middleware in dev mode, [see the FAQ](https://kit.svelte.dev/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-middleware).
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-node/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Adapter } from '@sveltejs/kit';
import { BuildOptions } from 'esbuild';

interface AdapterOptions {
entryPoint?: string,
entryPoint?: string;
out?: string;
precompress?: boolean;
env?: {
Expand Down

0 comments on commit 943c1ca

Please sign in to comment.