"The Google Vertex provider is not compatible with edge environments." -- can't use vertex in production? #2673
-
This:
Does this mean I can't run this (below) in production in Vercel?
Runs as expected locally. How do I disable the edge envronment, or otherwise deploy vertex models in production on Vercel? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The Vertex provider uses the Google Auth lilbrary under the hood, which requires node JS. You cannot use it in an edge environment. Typically this is not the default, there should be some settings in your api routes that indicate it's for edge. See e.g. https://vercel.com/docs/functions/configuring-functions/runtime |
Beta Was this translation helpful? Give feedback.
The Vertex provider uses the Google Auth lilbrary under the hood, which requires node JS. You cannot use it in an edge environment. Typically this is not the default, there should be some settings in your api routes that indicate it's for edge. See e.g. https://vercel.com/docs/functions/configuring-functions/runtime