try fix .env with NUXT_ prefix
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import { syncCardsWithDatabase } from '../services/cardSync.service'
|
||||
|
||||
export default defineNitroPlugin(async (nitroApp) => {
|
||||
const config = useRuntimeConfig()
|
||||
const folderPath = config.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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user