@resolve-js/runtime-single-process
TypeScript icon, indicating that this package has built-in type declarations

0.34.3 • Public • Published

@resolve-js/runtime-single-process

npm version

This package contains a runtime backend server that targets a standalone server or local machine.

Available Options

You can specify the following options to configure the runtime:

  • importMode- Specifies whether to use static or dynamic imports between the application's modules.
  • host - Specifies the network host on which to listen for connections. Defaults to '0.0.0.0'.
  • port - Specifies the server application's port.

Usage

// config.prod.js
const prodConfig = {
  runtime: {
    module: '@resolve-js/runtime-single-process',
    options: {
      host: declareRuntimeEnv('HOST', 'localhost'),
      port: declareRuntimeEnv('PORT', '3000'),
    },
  },
  ...
}

Analytics

Package Sidebar

Install

npm i @resolve-js/runtime-single-process

Weekly Downloads

23

Version

0.34.3

License

MIT

Unpacked Size

321 kB

Total Files

96

Last publish

Collaborators

  • resolve-admin