mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Electron: structure
This commit is contained in:
@@ -12,7 +12,7 @@ const buildOnlyFrontend = process.argv.includes('--hide') ? true
|
||||
function getApiDirName() {
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = pathDirName(__filename);
|
||||
return pathJoin(__dirname, '../app/api');
|
||||
return pathJoin(__dirname, '../../app/api');
|
||||
}
|
||||
|
||||
function findAllFiles(startDir) {
|
||||
+4
-2
@@ -2,6 +2,8 @@
|
||||
"name": "big-agi",
|
||||
"version": "1.13.0",
|
||||
"private": true,
|
||||
"author": "Enrico Ros <enrico.ros@gmail.com>",
|
||||
"repository": "https://github.com/enricoros/big-agi",
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
@@ -12,8 +14,8 @@
|
||||
"db:studio": "prisma studio",
|
||||
"vercel:env:pull": "npx vercel env pull .env.development.local",
|
||||
"export:frontend": "cross-env EXPORT_FRONTEND=true next build",
|
||||
"postexport:frontend": "node scripts/export.frontend.mjs --restore",
|
||||
"preexport:frontend": "node scripts/export.frontend.mjs --hide"
|
||||
"postexport:frontend": "node electron/scripts/export.frontend.mjs --restore",
|
||||
"preexport:frontend": "node electron/scripts/export.frontend.mjs --hide"
|
||||
},
|
||||
"prisma": {
|
||||
"schema": "src/server/prisma/schema.prisma"
|
||||
|
||||
+1
-1
@@ -36,5 +36,5 @@
|
||||
}
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
"exclude": ["node_modules", "dist", "electron"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user