Compare commits

...

3 Commits

Author SHA1 Message Date
6095fa47d4 chore: merge branch 'master' into ci/proxy
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m52s
2025-09-27 10:52:51 +08:00
8932b27134 fix(env): 修复构建版本无法正常获取环境变量的问题
All checks were successful
deploy to server / build-and-deploy (push) Successful in 6m41s
- 在nuxt.config.ts中,将strapi配置项移至runnertimeConfig-public-strapi中

Issue: Fixes #29
2025-09-27 10:45:07 +08:00
a4d3caeb6b fix: 修正构建版本无法正常获取环境变量的问题
All checks were successful
deploy to server / build-and-deploy (push) Successful in 10m0s
- 将nuxt.config.ts中的strapi配置移至runtimeConfig中
2025-09-26 17:28:54 +08:00

View File

@ -29,6 +29,15 @@ export default defineNuxtConfig({
: process.env.MEILI_SEARCH_INDEXES
: ['production', 'solution'],
},
strapi: {
url: process.env.STRAPI_URL || 'http://localhost:1337',
token: process.env.STRAPI_TOKEN || undefined,
prefix: '/api',
admin: '/admin',
version: 'v5',
cookie: {},
cookieName: 'strapi_jwt',
},
},
},
@ -104,16 +113,6 @@ export default defineNuxtConfig({
langDir: 'locales',
},
strapi: {
url: process.env.STRAPI_URL || 'http://localhost:1337',
token: process.env.STRAPI_TOKEN || undefined,
prefix: '/api',
admin: '/admin',
version: 'v5',
cookie: {},
cookieName: 'strapi_jwt',
},
imports: {
dirs: ['types/**'],
},