pingdotgg / uploadthing

File uploads for modern web devs
https://uploadthing.com
MIT License
4.27k stars 319 forks source link

docs: Nuxt environment variable in setup does not work #1047

Closed kadengriffith closed 1 week ago

kadengriffith commented 2 weeks ago

Area of Improvement

I just went through the setup for Nuxt, and it seems like the env var that needs to be set (at least locally) is UPLOADTHING_TOKEN not NUXT_UPLOADTHING_TOKEN as documented. The docs point out that it's very important to use the NUXT_ prefix, but that doesn't seem to work.

I have not tested this in prod yet, maybe run context matters.

Just a small point of confusion I was able to get through on my own.

Nuxt version: 3.14.159 UploadThing version: 7.3.0

Link to related docs

https://docs.uploadthing.com/getting-started/nuxt#add-env-variables

Additional information

No response

๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Contributing