Skip to content

Commit a3bcf4b

Browse files
committed
do the copy in offline start
1 parent 513222c commit a3bcf4b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/index.ts

+3-9
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,11 @@ class ServerlessReact {
181181
"before:offline:start": async () => {
182182
this.log.verbose("before:offline:start");
183183
const { compiler } = await this.build();
184-
const destination =
185-
this.serverless.service.custom?.["serverless-offline"]?.location;
186-
console.log("!!! bos destination", destination);
184+
await this.copy(
185+
this.serverless.service.custom?.["serverless-offline"]?.location
186+
);
187187
await this.watch(compiler);
188188
},
189-
"after:offline:start": async () => {
190-
this.log.verbose("after:offline:start");
191-
const destination =
192-
this.serverless.service.custom?.["serverless-offline"]?.location;
193-
await this.copy(destination);
194-
},
195189
"before:package:createDeploymentArtifacts": async () => {
196190
this.log.verbose("before:package:createDeploymentArtifacts");
197191
},

0 commit comments

Comments
 (0)