File tree 4 files changed +10
-6
lines changed
4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ output : 'standalone' ,
3
+ } ;
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"dev" : " next dev -p 7000" ,
7
7
"build" : " next build" ,
8
- "start" : " next start -p 8092 "
8
+ "start" : " PORT=8092 HOSTNAME=localhost node .next/standalone/docs_ai_backend/server.js "
9
9
},
10
10
"keywords" : [],
11
11
"author" : " khannanov-nil" ,
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export const populateDB = async () => {
69
69
docs = docs . concat ( doc ) ;
70
70
}
71
71
const contractsLoader = new DirectoryLoader (
72
- path . resolve ( "../node_modules/@nilfoundation/smart-contracts/contracts" ) , {
72
+ path . resolve ( "../../../ node_modules/@nilfoundation/smart-contracts/contracts" ) , {
73
73
".sol" : ( path ) => new TextLoader ( path )
74
74
} ) ;
75
75
const contractDocs = await contractsLoader . load ( ) ;
Original file line number Diff line number Diff line change @@ -32,9 +32,10 @@ stdenv.mkDerivation rec {
32
32
checkPhase = "" ;
33
33
34
34
installPhase = ''
35
- mkdir -p $out
36
- mv smart-contracts $out/smart-contracts
37
- mv node_modules $out/node_modules
38
- mv docs_ai_backend/ $out/docs_ai_backend
35
+ mkdir -p $out/docs_ai_backend
36
+ mkdir -p $out/smart-contracts
37
+ cp -r docs_ai_backend/.next/static $out/docs_ai_backend
38
+ cp -r docs_ai_backend/.next/standalone $out/docs_ai_backend
39
+ mv smart-contracts/contracts $out/smart-contracts
39
40
'' ;
40
41
}
You can’t perform that action at this time.
0 commit comments