Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bdab5e6

Browse files
authoredMar 21, 2023
fix: support custom container (#523)
1 parent f1a4228 commit bdab5e6

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
 

‎.changeset/wild-timers-rescue.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@midwayjs/dev-pack': patch
3+
'@midwayjs/bundler': patch
4+
'@midwayjs/esrun': patch
5+
'@midwayjs/hcc': patch
6+
'@midwayjs/hooks': patch
7+
'@midwayjs/hooks-bundler': patch
8+
'@midwayjs/hooks-core': patch
9+
'@midwayjs/hooks-internal': patch
10+
'@midwayjs/hooks-kit': patch
11+
'@midwayjs/hooks-upload': patch
12+
'@midwayjs/rpc': patch
13+
'@midwayjs/serve': patch
14+
'@midwayjs/test-util': patch
15+
---
16+
17+
fix: support custom container(aliyun fc)

‎packages/dev-pack/src/server.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ export class DevServer {
145145
}
146146

147147
private isServerlessApp() {
148-
return existsSync(resolve(this.options.cwd, 'f.yml'))
148+
return (
149+
existsSync(resolve(this.options.cwd, 'f.yml')) &&
150+
!existsSync(resolve(this.options.cwd, 'bootstrap'))
151+
)
149152
}
150153

151154
private handleStarted = async () => {

0 commit comments

Comments
 (0)
This repository has been archived.