We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 738757d commit fc7008aCopy full SHA for fc7008a
assets/esbuild.js
@@ -17,6 +17,9 @@ let opts = {
17
logLevel: 'info',
18
target: 'es2016',
19
outdir: '../dist/js',
20
+ define: {
21
+ 'process.env.LATENCY_SIM': process.env.LATENCY_SIM || 0,
22
+ },
23
}
24
if (mode === 'watch') {
25
opts = {
assets/js/app.js
@@ -211,7 +211,7 @@ liveSocket.connect();
211
212
if (ENV == "dev") {
213
liveSocket.enableDebug();
214
- liveSocket.enableLatencySim(200 + Math.floor(Math.random() * 1500));
+ liveSocket.enableLatencySim(process.env.LATENCY_SIM);
215
216
217
window.liveSocket = liveSocket;
0 commit comments