9 lines
244 B
JavaScript
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;
|