Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Try this again setting the environment variable to all env variables

Scott Petrovic0f3caebfd670
diff --git a/src/environment.js b/src/environment.js
index 7b618cf..3bb3bef 100644
--- a/src/environment.js
+++ b/src/environment.js
@@ -1 +1,4 @@
export const build_version = '0.0.0'
+
+// expose all Cloudflare environment variables to client
+window.PROCESS_ENV = PROCESS_ENV
diff --git a/vite.config.js b/vite.config.js
index d496b45..969a6e7 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -9,7 +9,7 @@ export default {
base: './',
define: {
// expose all Cloudflare environment variables to client from window object
- 'window.PROCESS_ENV': JSON.stringify(process.env || 'unknown')
+ PROCESS_ENV: JSON.stringify(process.env || 'unknown')
},
server:
{