File tree Expand file tree Collapse file tree 5 files changed +17
-4
lines changed
examples/nextjs-together-llamaindex Expand file tree Collapse file tree 5 files changed +17
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : nextjs-together-llamaindex
1
2
version : ' 3.8'
3
+ networks :
4
+ bridge :
5
+ driver : bridge
2
6
3
7
services :
4
8
frontend :
@@ -15,6 +19,8 @@ services:
15
19
- NEXT_PUBLIC_API_HOSTNAME=http://backend:3000
16
20
depends_on :
17
21
- backend
22
+ networks :
23
+ - bridge
18
24
19
25
backend :
20
26
build :
@@ -23,4 +29,6 @@ services:
23
29
ports :
24
30
- " 8000:3000"
25
31
env_file :
26
- - ./backend/.env
32
+ - ./backend/.env
33
+ networks :
34
+ - bridge
Original file line number Diff line number Diff line change
1
+ node_modules
2
+ .next
Original file line number Diff line number Diff line change 7
7
"build" : " next build" ,
8
8
"start" : " next start" ,
9
9
"lint" : " next lint" ,
10
- "clean" : " rm -rf node_modules"
10
+ "clean" : " rm -rf node_modules" ,
11
+ "docker:build" : " docker build -t restack-nextjs-together-llamaindex-frontend ." ,
12
+ "docker:run" : " docker run -p 3000 restack-nextjs-together-llamaindex-frontend" ,
13
+ "docker:stop" : " docker stop restack-nextjs-together-llamaindex-frontend"
11
14
},
12
15
"dependencies" : {
13
16
"@restackio/ai" : " ^0.0.81" ,
Original file line number Diff line number Diff line change 2
2
3
3
import { useState } from "react" ;
4
4
import { Example , examples } from "./examplesList" ;
5
- import { triggerWorkflow } from "@/app/actions/Trigger " ;
5
+ import { triggerWorkflow } from "@/app/actions/trigger " ;
6
6
7
7
const Examples = ( ) => {
8
8
const [ loading , setLoading ] = useState ( false ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export type Example = {
3
3
description : string ;
4
4
integrations : string [ ] ;
5
5
workflowName : string ;
6
- input : Record < string , any > ;
6
+ input : Record < string , unknown > ;
7
7
} ;
8
8
9
9
export const examples = [
You can’t perform that action at this time.
0 commit comments