refactor: use nuxt compatiable 4 folder
This commit is contained in:
11
scripts/config.ts
Normal file
11
scripts/config.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import path from 'node:path'
|
||||
import url from 'node:url'
|
||||
|
||||
const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
|
||||
const recipeCsvFile = path.resolve(__dirname, '../app/data/recipe.csv')
|
||||
const recipeJsonFile = path.resolve(__dirname, '../app/data/recipe.json')
|
||||
|
||||
export const config = {
|
||||
recipeCsvFile,
|
||||
recipeJsonFile,
|
||||
}
|
||||
Reference in New Issue
Block a user