Skip to content

Commit

Permalink
测试环境变量的加载
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry committed Apr 24, 2024
1 parent 7c7476c commit 4611c8c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
push: true
context: .
platforms: linux/amd64,linux/arm64
# platforms: linux/amd64,linux/arm64
tags: |
${{env.VERSION_TAG}}
${{env.LASTEST_TAG}}
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ node_modules
# Logs
logs
*.log

.env
# Misc
.DS_Store
.fleet
Expand Down
20 changes: 0 additions & 20 deletions config.properties

This file was deleted.

20 changes: 10 additions & 10 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
export default defineNuxtConfig({
devtools: { enabled: false },
runtimeConfig: {
recaptchaV3secretKey: process.env.GOOGLE_RECAPTCHA_SECRET_KEY || "",
recaptchaV3secretKey: process.env.NUXT_GOOGLE_RECAPTCHA_SECRET_KEY || "",
public: {
commentEnable:process.env.MOMENTS_COMMENT_ENABLE || "true",
showComment:process.env.MOMENTS_SHOW_COMMENT || "true",
commentMaxLength: process.env.MOMENTS_COMMENT_MAX_LENGTH || "120",
commentOrderBy: process.env.MOMENTS_COMMENT_ORDER_BY || "desc",
toolbarEnableDouban: process.env.MOMENTS_TOOLBAR_ENABLE_DOUBAN || "true",
toolbarEnableMusic163: process.env.MOMENTS_TOOLBAR_ENABLE_MUSIC163 || "true",
toolbarEnableVideo: process.env.MOMENTS_TOOLBAR_ENABLE_VIDEO || "true",
maxLine: process.env.MOMENTS_MAX_LINE || "4",
recaptchaV3SiteKey: process.env.GOOGLE_RECAPTCHA_SITE_KEY || "",
commentEnable:process.env.NUXT_MOMENTS_COMMENT_ENABLE || "true",
showComment:process.env.NUXT_MOMENTS_SHOW_COMMENT || "true",
commentMaxLength: process.env.NUXT_MOMENTS_COMMENT_MAX_LENGTH || "120",
commentOrderBy: process.env.NUXT_MOMENTS_COMMENT_ORDER_BY || "desc",
toolbarEnableDouban: process.env.NUXT_MOMENTS_TOOLBAR_ENABLE_DOUBAN || "true",
toolbarEnableMusic163: process.env.NUXT_MOMENTS_TOOLBAR_ENABLE_MUSIC163 || "true",
toolbarEnableVideo: process.env.NUXT_MOMENTS_TOOLBAR_ENABLE_VIDEO || "true",
maxLine: process.env.NUXT_MOMENTS_MAX_LINE || "4",
recaptchaV3SiteKey: process.env.NUXT_GOOGLE_RECAPTCHA_SITE_KEY || "",
},
},
modules: ["@nuxtjs/tailwindcss", "shadcn-nuxt", "@nuxtjs/color-mode"],
Expand Down

0 comments on commit 4611c8c

Please sign in to comment.