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

This commit is contained in:
valere
2026-02-10 20:33:10 +01:00
parent 7be09dd12d
commit d89f2aa3e7
11 changed files with 15 additions and 26 deletions

View File

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