question

Joel Malone avatar image
Joel Malone asked

CloudScript .js file size limits,Cloud Script Javascript code limit

Hello!

We're currently evaluating PlayFab and have need to bundle some NPM packages into the Cloud Script file. We write our code in Typescript and bundle it into a single `.js` file using Webpack. The resulting Javascript file can be quite large.

As an example, I've imported and bundled a package for verifying JWTs, which has grown the final `.js` file from a handful of bytes to 650KB in size (with no minification applied). PlayFab has accepted this file and we can successfully execute it from the client.

I expect as we add more packages, the size will grow, so am wary of sudden rejection once we cross a limit.

Is there a size limit to the uploaded Javascript file?

Thanks!

Joel

CloudScriptlimits
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

Hi @Joel Malone,

You can navigate to this link: https://developer.playfab.com/en-US/your_title_id/limits/CloudScript/ScriptFileSize to check the current usage and total limit of your title’s Cloud Script script size. If you need higher limits, you’ll need to contact the sales team to talk about an custom plan for your title using the Contact Us link.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.