-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Netlify: Document why we need a specific configuration #1086
Comments
I'm trying to better understand the two approaches for documentation and examples purposes. I can't get either approach to work when deploying from the command line. From what I understand, there are two possible build-approaches with Netlify:
Both approaches use the Netlify Build Image during build time which is different to the Lambda runtime. That's why we want to be able to run the build in the same image as the runtime (see netlify/build#730) so we don't have to explicitly define the Approach 2 (Netlify Build) uses a different version of Open questions
Answer: Yes according to this comment
Potential answer: Because the old version of
Current challengesBinary missing at runtime
There's an ongoing discussion about why this is happening locally: netlify/zip-it-and-ship-it#81
Getting both approaches to work with zero-config
|
This is addressed in the new deployment guide. It’s also encoded in the deployment example https://github.com/prisma/deployment-example-netlify/blob/master/netlify.toml |
To make Prisma Client JS work with Netlify Functions, we need the following configuration:
This is because the netlify runtime is similar to AWS lambda which powers it and rhel linux is expected.
This might be a bit confusing to the users if they try to log the OS in the netlify's build step which is Ubuntu. But we don't need to make any configurational changes to make Prisma CLI (I think the only build step use case?) work as it is freshly installed on that platform.
We may want to document this behavior.
Related issue: prisma/prisma-client-js#324
(Note that you might need additional steps to ensure that this binary is bundled with netlify because netlify CI as of February 2020 uses an older version of ZISI which does not include this fix netlify/zip-it-and-ship-it#77)
The text was updated successfully, but these errors were encountered: