RobbyR
Convex Community3mo ago
5 replies
Robby

deploy previews - netlify/nuxt

i am currently setting up deploy previews and i am getting to the point where deploys happening successfully, but setting the env variable for the convex url is having trouble...

I have the env url (this is being used sometimes when i need to use to create httpClient of convex)
it is defined as NUXT_PUBLIC_CONVEX_URL -

i use the build command - npx convex deploy --cmd-url-env-var-name NUXT_PUBLIC_CONVEX_URL --cmd 'npm run build'

without setting this env in netlify, the deploy preview errors out that it needs a dpeloyment url. from convex docs, would this env be injected? I was thinking of trying to set it dynamically, but not sure if thats the route to go?
image.png
Was this page helpful?