From e56178a8727470d861d00afdbf16718da1405f40 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sat, 12 Dec 2020 15:20:55 +0100 Subject: [PATCH] fix: use connect for dev server due to loading-screen issue --- packages/nitro/src/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nitro/src/server.ts b/packages/nitro/src/server.ts index 1733d729c6..fdc25d2cf0 100644 --- a/packages/nitro/src/server.ts +++ b/packages/nitro/src/server.ts @@ -1,8 +1,8 @@ import { Worker } from 'worker_threads' +import connect from 'connect' import { resolve } from 'upath' import debounce from 'debounce' import chokidar from 'chokidar' -import { createApp } from '@nuxt/h2' import { listen, Listener } from 'listhen' import serveStatic from 'serve-static' import { createProxy } from 'http-proxy' @@ -47,7 +47,7 @@ export function createDevServer (sigmaContext: SigmaContext) { } // App - const app = createApp() + const app = connect() // _nuxt and static app.use(sigmaContext._nuxt.publicPath, serveStatic(resolve(sigmaContext._nuxt.buildDir, 'dist/client')))