Skip to content

Commit

Permalink
fix: deprecate use child processes (#1546)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk authored Aug 18, 2022
1 parent fa213d9 commit 410d1dd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/ServerlessOffline.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
defaultOptions,
SERVER_SHUTDOWN_TIMEOUT,
} from './config/index.js'
import { gray } from './config/colors.js'
import { gray, orange } from './config/colors.js'

export default class ServerlessOffline {
#cliOptions = null
Expand Down Expand Up @@ -225,6 +225,14 @@ export default class ServerlessOffline {
...this.#cliOptions,
}

if (this.#options.useChildProcesses) {
log.notice()
log.warning(
orange(`'--useChildProcesses' is deprecated and will be removed in the next major version. Worker threads, the current default, should provide the same if not an even better developer experience.
If you are experiencing any issues please let us know: https://github.com/dherault/serverless-offline/issues`),
)
}

// Parse CORS options
this.#options.corsAllowHeaders = this.#options.corsAllowHeaders
.replace(/\s/g, '')
Expand Down

0 comments on commit 410d1dd

Please sign in to comment.