Open sedationh opened 1 week ago
Describe the bug Using Vite to import the npm package @petercatai/assistant results in an error.
UserController.js:4 Uncaught ReferenceError: process is not defined at UserController.js:4:17
To Reproduce
The issue can be reproduced as mentioned.
Additional context
Currently, you can add a configuration similar to the one below to work around the issue.
export default defineConfig({ plugins: [react()], define: { "process.env.NEXT_PUBLIC_API_DOMAIN": JSON.stringify( "https://your-api-domain.com" ), }, });
Describe the bug Using Vite to import the npm package @petercatai/assistant results in an error.
UserController.js:4 Uncaught ReferenceError: process is not defined at UserController.js:4:17
To Reproduce
The issue can be reproduced as mentioned.
Additional context
Currently, you can add a configuration similar to the one below to work around the issue.