Spaces:
Running
Running
fix: shim process global for CDN-loaded SDK host bundle
Browse files- index.html +7 -1
index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
<!doctype html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8" />
|
|
@@ -6,6 +6,12 @@
|
|
| 6 |
<title>Howdy Friend</title>
|
| 7 |
<link rel="icon" href="/public/icon.svg" type="image/svg+xml" />
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/@pollen-robotics/reachy-mini-sdk@1.8.0/+esm" />
|
| 10 |
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/@pollen-robotics/reachy-mini-sdk@1.8.0/host/dist/entry/auto.js" />
|
| 11 |
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/@pollen-robotics/reachy-mini-sdk@1.8.0/host/dist/entry/embed.js" />
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8" />
|
|
|
|
| 6 |
<title>Howdy Friend</title>
|
| 7 |
<link rel="icon" href="/public/icon.svg" type="image/svg+xml" />
|
| 8 |
|
| 9 |
+
<!-- Node global shim: the SDK host bundle references process.env.NODE_ENV and we load it unbundled from a CDN. -->
|
| 10 |
+
<script>
|
| 11 |
+
window.process = window.process || { env: { NODE_ENV: "production" } };
|
| 12 |
+
window.global = window.global || window;
|
| 13 |
+
</script>
|
| 14 |
+
|
| 15 |
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/@pollen-robotics/reachy-mini-sdk@1.8.0/+esm" />
|
| 16 |
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/@pollen-robotics/reachy-mini-sdk@1.8.0/host/dist/entry/auto.js" />
|
| 17 |
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/@pollen-robotics/reachy-mini-sdk@1.8.0/host/dist/entry/embed.js" />
|