How to use the soya-next/server/config.soya.config function in soya-next

To help you get started, we’ve selected a few soya-next examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github traveloka / soya-next / packages / soya-next-cli / templates / server.js View on Github external
server.listen(soya.config.port, err => {
      if (err) {
        throw err;
      }
      // eslint-disable-next-line no-console
      console.log(`> Ready on http://localhost:${soya.config.port}`);
    });
  })
github traveloka / soya-next / packages / soya-next-cli / templates / server.js View on Github external
.then(() => {
    const server = express();
    server.use(createRouter(app));
    server.listen(soya.config.port, err => {
      if (err) {
        throw err;
      }
      // eslint-disable-next-line no-console
      console.log(`> Ready on http://localhost:${soya.config.port}`);
    });
  })
  .catch(ex => {