test server NUXT_ env in nuxt config
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { syncCardsWithDatabase } from '../services/cardSync.service'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const folderPath = process.env.NUXT_PATH_FILES
|
||||
const runtimeConfig = useRuntimeConfig()
|
||||
const folderPath = runtimeConfig.NUXT_PATH_FILES
|
||||
|
||||
if (!folderPath) {
|
||||
throw createError({
|
||||
|
||||
Reference in New Issue
Block a user