Configurable binary asset download (source) location
See original GitHub issueThis feature request originated here https://github.com/prisma/prisma2/issues/916
and is not covered via https://github.com/prisma/prisma2/issues/506
Prisma CLI, tries to download binaries from Prisma’s S3 bucket. In some environments, this download fails.
This requires spec work but a potential solution can be to have a configurable CDN URL via an env var like PRISMA_CDN_URL
.
The responsibility of maintaining a mirror would be on the users.
An alternative is to link binaries to a release: https://github.com/prisma/prisma2/releases
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Asset Modules - webpack
Asset Modules is a type of module that allows one to use asset files (fonts, icons, etc) without configuring additional loaders. Prior to...
Read more >Installation from binary - Docs - Gitea
Download. You can find the file matching your platform from the downloads page after navigating to the version you want to download.
Read more >Download assets | Adobe Experience Manager
When you select a folder to download, the complete asset hierarchy under the folder is downloaded. To include each asset you download (including ......
Read more >Manual: Storing and loading binary data in an AssetBundle
bytes” extension. Unity will treat this file as a TextAsset. As a TextAsset the file can be included when you build your AssetBundle....
Read more >ASP.NET Core Blazor file downloads - Microsoft Learn
Files can be downloaded from the app's own static assets or from any other location: ASP.NET Core apps use Static File Middleware to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve also been having proxy/firewall issues but after digging around the code I’ve discovered that the binary asset locations are already configurable via environment variables. In my case I’m able to wget the binaries down to my container via our corporate proxy and simply point to them locally using these environment variables:
Support for the env var
PRISMA_BINARIES_MIRROR
is now implemented. A valid example URL is:https://binaries.prisma.sh
You can try it out in the latest alpha:
@prisma/cli@alpha
&@prisma/client@alpha