try fix .env with NUXT_ prefix
All checks were successful
Deploy App / build (push) Successful in 49s
Deploy App / deploy (push) Successful in 22s

This commit is contained in:
valere
2026-02-10 18:44:00 +01:00
parent 08db4d7388
commit ffd5c5d7eb
10 changed files with 15 additions and 24 deletions

View File

@@ -1,8 +1,7 @@
import { syncCardsWithDatabase } from '../../services/cardSync.service'
export default defineEventHandler(async (event) => {
const config = useRuntimeConfig()
const folderPath = config.PATH_FILES
const folderPath = process.env.NUXT_PATH_FILES
try {
const result = await syncCardsWithDatabase(folderPath)

View File

@@ -1,8 +1,7 @@
import { scanMusicFolder } from '../../utils/fileScanner'
export default defineEventHandler(async (event) => {
const config = useRuntimeConfig()
const folderPath = config.PATH_FILES
const folderPath = process.env.NUXT_PATH_FILES
try {
// Test 1: Vérifier que le dossier existe