harlan-zw / nuxt-site-config

Unifying site config with powerful and flexible APIs, for module authors and users.
https://nuxtseo.com/site-config
61 stars 3 forks source link

Prefer Vercel Framework Agnostic Env #20

Closed harlan-zw closed 5 months ago

harlan-zw commented 5 months ago

Describe the bug

When deploying to Vercel, the module will set default site config from the Vercel environment variables. However, these will not work when the end-user has not manually selected the Nuxt framework.

For this reason we should prefer the agnostic environment variables.

NUXT_ENV_<key> -> <key>

Reproduction

No response

System / Nuxt Info

No response

harlan-zw commented 5 months ago

Looking at the code we already prefer VERCEL_URL over NUXT_ENV_VERCEL_URL