test server NUXT_ env in nuxt config
All checks were successful
Deploy App / build (push) Successful in 1m6s
Deploy App / deploy (push) Successful in 18s

This commit is contained in:
valere
2026-02-10 20:59:18 +01:00
parent d89f2aa3e7
commit 0195c52d30
10 changed files with 21 additions and 17 deletions

View File

@@ -1,7 +1,8 @@
import { syncCardsWithDatabase } from '../services/cardSync.service'
export default defineNitroPlugin(async (nitroApp) => {
const folderPath = process.env.NUXT_PATH_FILES
const runtimeConfig = useRuntimeConfig()
const folderPath = runtimeConfig.NUXT_PATH_FILES
if (!folderPath) {
console.warn('⚠️ NUXT_PATH_FILES non configuré')