Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Try to store everythin in window object for easier access

Scott Petrovicf1d6e805af9e
diff --git a/vite.config.js b/vite.config.js
index a0fbce5..d496b45 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -8,8 +8,8 @@ export default {
publicDir: '../static/',
base: './',
define: {
- // expose all Cloudflare environment variables to client
- PROCESS_ENV: JSON.stringify(process.env || 'unknown')
+ // expose all Cloudflare environment variables to client from window object
+ 'window.PROCESS_ENV': JSON.stringify(process.env || 'unknown')
},
server:
{