summaryrefslogtreecommitdiff
path: root/src/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.js')
-rw-r--r--src/utils.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.js b/src/utils.js
new file mode 100644
index 0000000..d2cc47b
--- /dev/null
+++ b/src/utils.js
@@ -0,0 +1,4 @@
+// Note: this only works on the server side
+export function getNetlifyContext() {
+ return process.env.CONTEXT;
+} \ No newline at end of file