Skip to content

Commit 6797a4e

Browse files
docs: improve environment variables part (#478)
1 parent ac962a9 commit 6797a4e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/content/docs/1.getting-started/3.deploy.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,19 @@ NuxtHub automatically copies all your project's environment variables to your Gi
210210

211211
When encrypting an environment variable in the NuxtHub Admin, a GitHub actions secret will be created in your repository.
212212

213+
You can view the environment variables and secrets synchronized by NuxtHub by navigating to **Repository Settings -> Secrets and variables -> Actions** on GitHub.
214+
213215
::warning
214-
If you have a private repository on a free GitHub account or organization, NuxtHub won't be able to sync the env variables & secrets as GitHub repository environments (production / preview) are not available.
216+
If you have a private repository on a free GitHub account or organization, NuxtHub won't be able to sync the env variables & secrets as GitHub repository environments (production / preview) are not available. In this case, you must manually set up the environment variables by navigating to **Repository Settings -> Secrets and variables -> Actions** on GitHub.
215217
::
216218

217-
In order to use GitHub Actions secret, you need to update the GitHub Actions workflow to use the secret as environment variable:
219+
In order to use GitHub Actions variables and secrets, you need to update your workflow to expose them as environment variables:
218220

219221
```diff [.github/workflows/nuxthub.yml]
220222
- name: Build application
221223
run: pnpm run build
222224
+ env:
225+
+ NUXT_PUBLIC_VAR: ${{ vars.NUXT_PUBLIC_VAR }}
223226
+ NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}
224227
```
225228

0 commit comments

Comments
 (0)