Cloudflare pages not compatible with Node.js packages

I am having an error when deploying a SvelteKit app that uses some Node.js packages in the server. I get this error in the logs:

The package "path" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

So, where do I have to use "platform: 'node"" in my project??
Was this page helpful?