hapijs / glue

Server composer for hapi.js
Other
245 stars 62 forks source link

Invalid server options #107

Closed ignivaravinderrikhi closed 6 years ago

ignivaravinderrikhi commented 6 years ago

This is my manifest object. If I ramove the connections from server Glue returns a Promise and If I add this I get error

const catboxMemory = require('catbox-memory');

const manifest = {
  server: {
    cache: {
      engine: catboxMemory,
    },
    connections: {
      routes: {
        cors: {
          origin: ['*'],
          additionalHeaders: ['x-logintoken'],
          additionalExposedHeaders: ['x-logintoken'],
          credentials: true,
        }
      }
    }
  }
};

{ AssertionError [ERR_ASSERTION]: Invalid server options & [1] "connections" is not allowed

I am trying out Glue first time can you please guide me if I am doing something wrong.

"glue": "5.0.0", "hapi": "16.6.2",

Thank you.

Marsup commented 6 years ago

Glue 5 is made for hapi 17, not 16, you should revert to 4.

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.