Revert "Add publishing date (#107)" (#108)

This commit is contained in:
Anders Gustafsson
2022-03-11 09:19:07 +01:00
committed by GitHub
parent cf6b1fd56e
commit b1da0b547e
8 changed files with 4051 additions and 4166 deletions
+14 -24
View File
@@ -1,4 +1,4 @@
const newrelic = require('newrelic');
require('newrelic');
import dotenv from 'dotenv';
dotenv.config();
@@ -90,30 +90,20 @@ const context = async ({ req }) => {
};
async function main() {
try {
const server = new ApolloServer({
typeDefs,
resolvers,
dataSources,
context,
introspection: true,
plugins: [newRelicPlugin],
formatError: (err) => {
console.log('Error (fmt):', err);
newrelic.noticeError(err);
return err;
},
});
const server = new ApolloServer({
typeDefs,
resolvers,
dataSources,
context,
introspection: true,
plugins: [newRelicPlugin],
});
await server.listen();
await server.listen();
console.log(
'Server is running on http://localhost:4000, ',
process.env.ENVIRONMENT_NAME,
);
} catch (ex) {
newrelic.noticeError(ex);
console.error('Got terminal exception:', ex);
}
console.log(
'Server is running on http://localhost:4000, ',
process.env.ENVIRONMENT_NAME,
);
}
main();