import { Meteor } from 'meteor/meteor'; if (Meteor.isServer) { if (!process.env.API_KEY) throw new Error("You must fill the API_KEY env variable !"); Meteor.methods({ 'security.key'() { return { key: process.env.API_KEY}; } }); }