mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-14 15:54:13 +01:00
[PR #1] [MERGED] refactor: runtime config #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ArthurDanjou/artsite/pull/1
Author: @Barbapapazes
Created: 6/23/2024
Status: ✅ Merged
Merged: 6/23/2024
Merged by: @ArthurDanjou
Base:
master← Head:refactor/runtime-config📝 Commits (1)
e863ab2refactor: runtime config📊 Changes
3 files changed (+22 additions, -16 deletions)
View changed files
📝
nuxt.config.ts(+13 -9)📝
server/api/activity.get.ts(+2 -2)📝
server/api/stats.get.ts(+7 -5)📄 Description
Because of some typos, you will have to update your environment variables in your deployment like the USER_UD instead of the USER_ID
Hello 👋,
I refactor the usage of the runtime config. First, there was some typos between the name of the environment variable and the name of the runtime config. Then, I remove the usage of
process.envsince Nuxt is already able to overwrite the runtime config with the environment variables.You can learn more with this video: https://youtu.be/_FYV5WfiWvs?si=XWUumfMOBC90TivF
I think the runtime config
discord.idanddiscord.tokenis not used and could be removed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.