File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -62,20 +62,20 @@ import polka from 'polka';
6262
6363const app = polka ();
6464
65- const myMiddleware = function (req , res , next ) {
66- console .log (' Hello world!' );
67- next ();
65+ const myMiddleware = function (req , res , next ) {
66+ console .log (' Hello world!' );
67+ next ();
6868};
6969
7070app .use (myMiddleware);
7171
7272app .get (' /no-svelte' , (req , res ) => {
73- res .end (' This is not Svelte!' )
73+ res .end (' This is not Svelte!' );
7474});
7575
7676app .use (assetsMiddleware, prerenderedMiddleware, kitMiddleware);
7777
78- app .listen (3000 )
78+ app .listen (3000 );
7979```
8080
8181For 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 ) .
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { Adapter } from '@sveltejs/kit';
22import { BuildOptions } from 'esbuild' ;
33
44interface AdapterOptions {
5- entryPoint ?: string ,
5+ entryPoint ?: string ;
66 out ?: string ;
77 precompress ?: boolean ;
88 env ?: {
You can’t perform that action at this time.
0 commit comments