Robby
Robby4w ago

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?
No description
4 Replies
Robby
RobbyOP4w ago
No description
Robby
RobbyOP4w ago
deploy successfull.
Robby
RobbyOP4w ago
No description
Robby
RobbyOP4w ago
nuxt error - if i dont set the env for deploy previews from the docs AI - "There is no mention in the knowledge sources of a way to set this variable directly from the Netlify CLI; the integration relies on the Convex CLI to inject the correct value during the build. If you follow this pattern, your Nuxt app will receive the correct URL for each deployment context."

Did you find this page helpful?