Skip to content

hermione/8.9.0

Compare
Choose a tag to compare
@KuznetsovRoman KuznetsovRoman released this 22 Apr 09:21
· 109 commits to master since this release
3074049

🚀 Improvements

  • add ability to specify dev server in config file (#909)

Usage example

// .hermione.conf.ts
const SERVER_PORT = 3000;
...
module.exports = {
    ...
    devServer: {
        command: "npm run server:dev",
        env: {PORT: SERVER_PORT},
        readinessProbe: {
            url: `http://localhost:${SERVER_PORT}/health`
        }
    }
}

Creates dev server with command "npm run server:dev", pass PORT env variable and wait until its ready to receive network requests

Command could also be "node some/file.js" or something else.