Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit23fa20f

Browse files
authored
chore: upgrade to apollo-server-express 3.x (#7210)
1 parentbeffe8a commit23fa20f

File tree

4 files changed

+221
-8
lines changed

4 files changed

+221
-8
lines changed

‎packages/@vue/cli-ui/graphql-server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function autoCall (fn, ...context) {
1919
returnfn
2020
}
2121

22-
module.exports=(options,cb=null)=>{
22+
module.exports=async(options,cb=null)=>{
2323
// Default options
2424
options=merge({
2525
integratedEngine:false
@@ -146,6 +146,7 @@ module.exports = (options, cb = null) => {
146146

147147
// Apollo Server
148148
constserver=newApolloServer(apolloServerOptions)
149+
awaitserver.start()
149150

150151
// Express middleware
151152
server.applyMiddleware({

‎packages/@vue/cli-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@achrinza/node-ipc":"^9.2.5",
3838
"@akryum/winattr":"^3.0.0",
3939
"@vue/cli-shared-utils":"^5.0.6",
40-
"apollo-server-express":"^2.21.0",
40+
"apollo-server-express":"^3.9.0",
4141
"clone":"^2.1.1",
4242
"deepmerge":"^4.2.2",
4343
"express":"^4.17.1",

‎packages/@vue/cli/lib/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function ui (options = {}, context = process.cwd()) {
6868
}
6969
}
7070

71-
const{ httpServer}=server(opts,()=>{
71+
const{ httpServer}=awaitserver(opts,()=>{
7272
// Reset for yarn/npm to work correctly
7373
if(typeofnodeEnv==='undefined'){
7474
deleteprocess.env.NODE_ENV

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp