mrwerdo commented on issue #560:
URL:
https://github.com/apache/casbin-node-casbin/issues/560#issuecomment-4775245422
Thank you for the switch response. That fix didn't work for me. However I
was able to get the example working after adding the below:
```ts
import { defineConfig } from "vite";
import { cloudflare } from "@cloudflare/vite-plugin";
import { nodePolyfills } from 'vite-plugin-node-polyfills';
export default defineConfig({
plugins: [
cloudflare(),
nodePolyfills({ globals: { Buffer: true } })
],
});
```
[Kudos to this
comment.](https://github.com/apache/casbin-node-casbin/issues/464#issuecomment-1886514825)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]