Skip to content

Commit 248e7eb

Browse files
committed
fix: fixed locators saving not working
1 parent 31badf1 commit 248e7eb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

netlify.toml

+3
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@
1919
# publish = "dist" # Folder with the static content for _redirect file
2020

2121
## more info on configuring this file: https://www.netlify.com/docs/netlify-toml-reference/
22+
23+
[context.develop.environment]
24+
LOCAL = "true"

netlify/functions/save_locators_interaction.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const handler: Handler = async (event, _context) => {
5959
} else {
6060
const { type, locators, stateTime } = JSON.parse(event.body);
6161
try {
62-
if (process.env.NODE_ENV === "production") {
62+
if (process.env.LOCAL !== "true") {
6363
await saveLocatorsInteraction(type, locators, stateTime);
6464
}
6565
response.body = "OK";

0 commit comments

Comments
 (0)