persea-old/side.js
2020-06-17 11:01:01 -05:00

9 lines
244 B
JavaScript

const side = (process.env.SIDE || '').toLowerCase();
if (-1 === ['client', 'server'].indexOf(side)) {
throw new Error(
"You must define the SIDE environment variable as 'server' or 'client' when building!",
);
}
module.exports = side;