-
Notifications
You must be signed in to change notification settings - Fork 67
Photon facade with netlify #324
Comments
Related issue: prisma/prisma#1015 |
I have a hunch that |
@divyenduz As for the size issue, |
I created an issue in @kripod could you already get Photon.js running on Netlify? The current stable version is at least not working, but the beta might. |
@timsuchanek Yes, please check out kripod/exigo. You may want to see the |
@kripod are you part of the build beta? When using the build beta, it now works perfectly fine with the new version of zip-it-and-ship-it. However, the mechanism of pinning zip-it-and-ship-it as you did in exigo didn't work for me. |
@timsuchanek Pinning the package version worked for me even before participating Build Beta. |
Interesting, good to know. The important message here is that it's fixed in the latest version of Netlifys build system anyway so I close this here :) Now it's time to finally merge your PR ;) |
How do make it work Netlify? I've added
to my package.json. That seems to install. With binaryTargets = ["native", "rhel-openssl-1.0.x"] . I get
with binaryTargets = ["native", "debian-openssl-1.0.x"], I get:
|
Note that it works with the GH integration but not with the |
Reproduction repository: https://github.com/divyendu-test/photonjs-324
Deploying a function with the following generator configuration on netlify fails with the following error
Config:
Error:
Unique deployment link with this error: https://5dee48f3f80a08893213d0b7--p2-netlify-facade.netlify.com/.netlify/functions/hello-facade
Note: The suggestion in the error looks incomplete, when seen in production.
I changed it to the following config, ran
prisma2 generate
and re-deployed, to match the binary being detected by Photon:Config:
But it still fails as if the binary is not there and the error message is a bit weird too, as it lists a thing that is already there.
Error:
Unique deployment link with this error: https://5dee4a45377315f699e946df--p2-netlify-facade.netlify.com/.netlify/functions/hello-facade
Note: All of this was with a global version of prisma2 CLI.
Trying it with a local version of
prisma2
CLI now, same result.Note that for both local, global CLI, it does list that it is downloading the listed
rhel
binary.The text was updated successfully, but these errors were encountered: