@superinterface/server 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/fallback-build-manifest.json +2 -2
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/trace +1 -1
- package/package.json +2 -2
- package/scripts/cli.ts +17 -2
- package/scripts/commands/prisma/deploy.ts +42 -0
- package/scripts/utils/loadPrisma.ts +60 -0
- /package/.next/static/{nYnLUt9M9vbekJUy4SqLM → AV1cmwx295lp-1-2s0TpY}/_buildManifest.js +0 -0
- /package/.next/static/{nYnLUt9M9vbekJUy4SqLM → AV1cmwx295lp-1-2s0TpY}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{nYnLUt9M9vbekJUy4SqLM → AV1cmwx295lp-1-2s0TpY}/_ssgManifest.js +0 -0
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"ampDevFiles": [],
|
|
16
16
|
"polyfillFiles": [],
|
|
17
17
|
"lowPriorityFiles": [
|
|
18
|
-
"static/
|
|
19
|
-
"static/
|
|
18
|
+
"static/AV1cmwx295lp-1-2s0TpY/_ssgManifest.js",
|
|
19
|
+
"static/AV1cmwx295lp-1-2s0TpY/_buildManifest.js"
|
|
20
20
|
],
|
|
21
21
|
"rootMainFiles": [],
|
|
22
22
|
"ampFirstPages": []
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--AV1cmwx295lp_1_2s0TpY--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/76a8a50dbf44f000.js"/><script src="/_next/static/chunks/079ce3572ffa07f6.js" async=""></script><script src="/_next/static/chunks/4649e58e35bcde4b.js" async=""></script><script src="/_next/static/chunks/turbopack-11882cf18a9eb231.js" async=""></script><script src="/_next/static/chunks/03d938d038bc30e3.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/76a8a50dbf44f000.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[96352,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n3:I[17753,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n4:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"OutletBoundary\"]\n6:I[33159,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"AsyncMetadataOutlet\"]\n8:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"ViewportBoundary\"]\na:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"MetadataBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[25098,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"AV1cmwx295lp-1-2s0TpY\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/03d938d038bc30e3.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$L5\",[\"$\",\"$L6\",null,{\"promise\":\"$@7\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],null],[\"$\",\"$La\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$b\",null,{\"fallback\":null,\"children\":\"$Lc\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",\"$undefined\"],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,"7:{\"metadata\":[],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"c:\"$7:metadata\"\n"])</script></body></html>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
a:I[51035,["/_next/static/chunks/03d938d038bc30e3.js"],"MetadataBoundary"]
|
|
8
8
|
b:"$Sreact.suspense"
|
|
9
9
|
d:I[25098,["/_next/static/chunks/03d938d038bc30e3.js"],"default"]
|
|
10
|
-
0:{"P":null,"b":"
|
|
10
|
+
0:{"P":null,"b":"AV1cmwx295lp-1-2s0TpY","p":"","c":["","_not-found"],"i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","script","script-0",{"src":"/_next/static/chunks/03d938d038bc30e3.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":["/_not-found",["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L4",null,{"children":["$L5",["$","$L6",null,{"promise":"$@7"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],[["$","$L8",null,{"children":"$L9"}],null],["$","$La",null,{"children":["$","div",null,{"hidden":true,"children":["$","$b",null,{"fallback":null,"children":"$Lc"}]}]}]]}],false]],"m":"$undefined","G":["$d","$undefined"],"s":false,"S":true}
|
|
11
11
|
9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
12
12
|
5:null
|
|
13
13
|
7:{"metadata":[],"error":null,"digest":"$undefined"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--AV1cmwx295lp_1_2s0TpY--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/76a8a50dbf44f000.js"/><script src="/_next/static/chunks/079ce3572ffa07f6.js" async=""></script><script src="/_next/static/chunks/4649e58e35bcde4b.js" async=""></script><script src="/_next/static/chunks/turbopack-11882cf18a9eb231.js" async=""></script><script src="/_next/static/chunks/03d938d038bc30e3.js" async=""></script><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div>@superinterface/server is running.</div><!--$--><!--/$--><script src="/_next/static/chunks/76a8a50dbf44f000.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[96352,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n3:I[17753,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n4:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"OutletBoundary\"]\n6:I[33159,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"AsyncMetadataOutlet\"]\n8:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"ViewportBoundary\"]\na:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"MetadataBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[25098,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"AV1cmwx295lp-1-2s0TpY\",\"p\":\"\",\"c\":[\"\",\"\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/03d938d038bc30e3.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"div\",null,{\"children\":\"@superinterface/server is running.\"}],null,[\"$\",\"$L4\",null,{\"children\":[\"$L5\",[\"$\",\"$L6\",null,{\"promise\":\"$@7\"}]]}]]}],{},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],null],[\"$\",\"$La\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$b\",null,{\"fallback\":null,\"children\":\"$Lc\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,"7:{\"metadata\":[],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"c:\"$7:metadata\"\n"])</script></body></html>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
a:I[51035,["/_next/static/chunks/03d938d038bc30e3.js"],"MetadataBoundary"]
|
|
8
8
|
b:"$Sreact.suspense"
|
|
9
9
|
d:I[25098,["/_next/static/chunks/03d938d038bc30e3.js"],"default"]
|
|
10
|
-
0:{"P":null,"b":"
|
|
10
|
+
0:{"P":null,"b":"AV1cmwx295lp-1-2s0TpY","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","script","script-0",{"src":"/_next/static/chunks/03d938d038bc30e3.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","div",null,{"children":"@superinterface/server is running."}],null,["$","$L4",null,{"children":["$L5",["$","$L6",null,{"promise":"$@7"}]]}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L8",null,{"children":"$L9"}],null],["$","$La",null,{"children":["$","div",null,{"hidden":true,"children":["$","$b",null,{"fallback":null,"children":"$Lc"}]}]}]]}],false]],"m":"$undefined","G":["$d",[]],"s":false,"S":true}
|
|
11
11
|
9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
12
12
|
5:null
|
|
13
13
|
7:{"metadata":[],"error":null,"digest":"$undefined"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--AV1cmwx295lp_1_2s0TpY--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/76a8a50dbf44f000.js"/><script src="/_next/static/chunks/079ce3572ffa07f6.js" async=""></script><script src="/_next/static/chunks/4649e58e35bcde4b.js" async=""></script><script src="/_next/static/chunks/turbopack-11882cf18a9eb231.js" async=""></script><script src="/_next/static/chunks/03d938d038bc30e3.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/76a8a50dbf44f000.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[96352,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n3:I[17753,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n4:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"OutletBoundary\"]\n6:I[33159,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"AsyncMetadataOutlet\"]\n8:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"ViewportBoundary\"]\na:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"MetadataBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[25098,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"AV1cmwx295lp-1-2s0TpY\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/03d938d038bc30e3.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$L5\",[\"$\",\"$L6\",null,{\"promise\":\"$@7\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],null],[\"$\",\"$La\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$b\",null,{\"fallback\":null,\"children\":\"$Lc\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",\"$undefined\"],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,"7:{\"metadata\":[],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"c:\"$7:metadata\"\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/a6dad97d9634a72d.js"></script><script src="/_next/static/chunks/22bca0be24d1dbb3.js" defer=""></script><script src="/_next/static/chunks/bd1a5816a611d718.js" defer=""></script><script src="/_next/static/chunks/turbopack-3bdbb570d8566903.js" defer=""></script><script src="/_next/static/chunks/e57ec661e9850a31.js" defer=""></script><script src="/_next/static/chunks/turbopack-67ff8c1c5b1ad9a8.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/a6dad97d9634a72d.js"></script><script src="/_next/static/chunks/22bca0be24d1dbb3.js" defer=""></script><script src="/_next/static/chunks/bd1a5816a611d718.js" defer=""></script><script src="/_next/static/chunks/turbopack-3bdbb570d8566903.js" defer=""></script><script src="/_next/static/chunks/e57ec661e9850a31.js" defer=""></script><script src="/_next/static/chunks/turbopack-67ff8c1c5b1ad9a8.js" defer=""></script><script src="/_next/static/AV1cmwx295lp-1-2s0TpY/_ssgManifest.js" defer=""></script><script src="/_next/static/AV1cmwx295lp-1-2s0TpY/_buildManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"AV1cmwx295lp-1-2s0TpY","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
package/.next/trace
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":127,"timestamp":3620844976,"id":4,"parentId":1,"tags":{},"startTime":1759895133155,"traceId":"3a0a7c51d1549dfb"},{"name":"load-custom-routes","duration":181,"timestamp":3620845152,"id":5,"parentId":1,"tags":{},"startTime":1759895133155,"traceId":"3a0a7c51d1549dfb"},{"name":"create-dist-dir","duration":821,"timestamp":3620933748,"id":6,"parentId":1,"tags":{},"startTime":1759895133244,"traceId":"3a0a7c51d1549dfb"},{"name":"create-pages-mapping","duration":201,"timestamp":3621021441,"id":7,"parentId":1,"tags":{},"startTime":1759895133332,"traceId":"3a0a7c51d1549dfb"},{"name":"collect-app-files","duration":5620,"timestamp":3621021687,"id":8,"parentId":1,"tags":{},"startTime":1759895133332,"traceId":"3a0a7c51d1549dfb"},{"name":"create-app-mapping","duration":1062,"timestamp":3621027335,"id":9,"parentId":1,"tags":{},"startTime":1759895133337,"traceId":"3a0a7c51d1549dfb"},{"name":"create-app-layouts","duration":206,"timestamp":3621028417,"id":10,"parentId":1,"tags":{},"startTime":1759895133339,"traceId":"3a0a7c51d1549dfb"},{"name":"collect-default-files","duration":2107,"timestamp":3621032454,"id":12,"parentId":1,"tags":{},"startTime":1759895133343,"traceId":"3a0a7c51d1549dfb"},{"name":"generate-route-types","duration":25095,"timestamp":3621030122,"id":11,"parentId":1,"tags":{},"startTime":1759895133340,"traceId":"3a0a7c51d1549dfb"},{"name":"public-dir-conflict-check","duration":829,"timestamp":3621055276,"id":13,"parentId":1,"tags":{},"startTime":1759895133365,"traceId":"3a0a7c51d1549dfb"},{"name":"generate-routes-manifest","duration":1344,"timestamp":3621056291,"id":14,"parentId":1,"tags":{},"startTime":1759895133366,"traceId":"3a0a7c51d1549dfb"},{"name":"run-turbopack-compiler","duration":6157480,"timestamp":3621067881,"id":16,"parentId":1,"tags":{},"startTime":1759895133378,"traceId":"3a0a7c51d1549dfb"},{"name":"verify-and-lint","duration":2263069,"timestamp":3627248371,"id":19,"parentId":1,"tags":{},"startTime":1759895139559,"traceId":"3a0a7c51d1549dfb"},{"name":"verify-typescript-setup","duration":5591628,"timestamp":3627245527,"id":18,"parentId":1,"tags":{},"startTime":1759895139556,"traceId":"3a0a7c51d1549dfb"},{"name":"check-static-error-page","duration":1653,"timestamp":3632869524,"id":22,"parentId":21,"tags":{},"startTime":1759895145180,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":1810,"timestamp":3632975878,"id":23,"parentId":21,"tags":{"page":"/_app"},"startTime":1759895145286,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":1267,"timestamp":3632976431,"id":25,"parentId":21,"tags":{"page":"/_document"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":1336,"timestamp":3632976363,"id":24,"parentId":21,"tags":{"page":"/_error"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":427106,"timestamp":3632980499,"id":50,"parentId":46,"tags":{},"startTime":1759895145291,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":430955,"timestamp":3632976706,"id":46,"parentId":21,"tags":{"page":"/api/threads/runs/submit-client-tool-outputs"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":439674,"timestamp":3632986322,"id":51,"parentId":31,"tags":{},"startTime":1759895145297,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":449490,"timestamp":3632976546,"id":31,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/initial-messages"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":439030,"timestamp":3632987196,"id":53,"parentId":29,"tags":{},"startTime":1759895145297,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":449706,"timestamp":3632976528,"id":29,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions/[functionId]"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":451013,"timestamp":3632986703,"id":52,"parentId":33,"tags":{},"startTime":1759895145297,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":461110,"timestamp":3632976637,"id":33,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":458897,"timestamp":3632987910,"id":55,"parentId":35,"tags":{},"startTime":1759895145298,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":470239,"timestamp":3632976651,"id":35,"parentId":21,"tags":{"page":"/api/assistants"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":462009,"timestamp":3632988652,"id":57,"parentId":32,"tags":{},"startTime":1759895145299,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":474064,"timestamp":3632976622,"id":32,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers/[mcpServerId]"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":464446,"timestamp":3632991163,"id":62,"parentId":41,"tags":{},"startTime":1759895145301,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":478952,"timestamp":3632976682,"id":41,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":479225,"timestamp":3632990750,"id":61,"parentId":42,"tags":{},"startTime":1759895145301,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":493345,"timestamp":3632976687,"id":42,"parentId":21,"tags":{"page":"/api/providers"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":500101,"timestamp":3632992193,"id":64,"parentId":34,"tags":{},"startTime":1759895145303,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":515685,"timestamp":3632976645,"id":34,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":528416,"timestamp":3632992682,"id":65,"parentId":45,"tags":{},"startTime":1759895145303,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":544450,"timestamp":3632976702,"id":45,"parentId":21,"tags":{"page":"/api/tasks"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":534290,"timestamp":3632991607,"id":63,"parentId":43,"tags":{},"startTime":1759895145302,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":549230,"timestamp":3632976692,"id":43,"parentId":21,"tags":{"page":"/api/tasks/[taskId]"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":543042,"timestamp":3632992924,"id":66,"parentId":48,"tags":{},"startTime":1759895145303,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":559300,"timestamp":3632976716,"id":48,"parentId":21,"tags":{"page":"/api/workspaces"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":560930,"timestamp":3632992990,"id":67,"parentId":26,"tags":{},"startTime":1759895145303,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":577497,"timestamp":3632976446,"id":26,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":571558,"timestamp":3632993698,"id":69,"parentId":30,"tags":{},"startTime":1759895145304,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":588749,"timestamp":3632976535,"id":30,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":582595,"timestamp":3632993974,"id":70,"parentId":47,"tags":{},"startTime":1759895145304,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":599885,"timestamp":3632976711,"id":47,"parentId":21,"tags":{"page":"/api/workspaces/[workspaceId]"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":583605,"timestamp":3633000147,"id":71,"parentId":49,"tags":{},"startTime":1759895145310,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":607053,"timestamp":3632976721,"id":49,"parentId":21,"tags":{"page":"/"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":584812,"timestamp":3633002111,"id":72,"parentId":28,"tags":{},"startTime":1759895145312,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":610488,"timestamp":3632976519,"id":28,"parentId":21,"tags":{"page":"/api/api-keys"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":584488,"timestamp":3633005281,"id":73,"parentId":27,"tags":{},"startTime":1759895145316,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":613290,"timestamp":3632976504,"id":27,"parentId":21,"tags":{"page":"/api/api-keys/[apiKeyId]"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":647176,"timestamp":3632989125,"id":59,"parentId":40,"tags":{},"startTime":1759895145299,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":659668,"timestamp":3632976676,"id":40,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/models"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":658339,"timestamp":3632987558,"id":54,"parentId":36,"tags":{},"startTime":1759895145298,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":669298,"timestamp":3632976656,"id":36,"parentId":21,"tags":{"page":"/api/files/[fileId]/contents"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":684869,"timestamp":3632988912,"id":58,"parentId":39,"tags":{},"startTime":1759895145299,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":697175,"timestamp":3632976671,"id":39,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/assistants"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":694620,"timestamp":3632988127,"id":56,"parentId":37,"tags":{},"startTime":1759895145298,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":706244,"timestamp":3632976661,"id":37,"parentId":21,"tags":{"page":"/api/files"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":721632,"timestamp":3632990500,"id":60,"parentId":38,"tags":{},"startTime":1759895145301,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":735523,"timestamp":3632976666,"id":38,"parentId":21,"tags":{"page":"/api/messages"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"is-page-static","duration":751394,"timestamp":3632993444,"id":68,"parentId":44,"tags":{},"startTime":1759895145304,"traceId":"3a0a7c51d1549dfb"},{"name":"check-page","duration":768180,"timestamp":3632976697,"id":44,"parentId":21,"tags":{"page":"/api/tasks/callback"},"startTime":1759895145287,"traceId":"3a0a7c51d1549dfb"},{"name":"static-check","duration":875855,"timestamp":3632869052,"id":21,"parentId":1,"tags":{},"startTime":1759895145179,"traceId":"3a0a7c51d1549dfb"},{"name":"generate-required-server-files","duration":413,"timestamp":3633745293,"id":75,"parentId":1,"tags":{},"startTime":1759895146056,"traceId":"3a0a7c51d1549dfb"},{"name":"write-routes-manifest","duration":787,"timestamp":3633751998,"id":77,"parentId":1,"tags":{},"startTime":1759895146062,"traceId":"3a0a7c51d1549dfb"},{"name":"load-dotenv","duration":22,"timestamp":3633766610,"id":80,"parentId":79,"tags":{},"startTime":1759895146077,"traceId":"3a0a7c51d1549dfb"},{"name":"run-export-path-map","duration":243,"timestamp":3633885732,"id":81,"parentId":79,"tags":{},"startTime":1759895146196,"traceId":"3a0a7c51d1549dfb"},{"name":"next-export","duration":845609,"timestamp":3633766035,"id":79,"parentId":1,"tags":{},"startTime":1759895146076,"traceId":"3a0a7c51d1549dfb"},{"name":"move-exported-app-not-found-","duration":2477,"timestamp":3634612642,"id":82,"parentId":78,"tags":{},"startTime":1759895146923,"traceId":"3a0a7c51d1549dfb"},{"name":"move-exported-page","duration":9471,"timestamp":3634615190,"id":83,"parentId":78,"tags":{},"startTime":1759895146925,"traceId":"3a0a7c51d1549dfb"},{"name":"static-generation","duration":1345973,"timestamp":3633761786,"id":78,"parentId":1,"tags":{},"startTime":1759895146072,"traceId":"3a0a7c51d1549dfb"},{"name":"write-routes-manifest","duration":108745,"timestamp":3635108013,"id":84,"parentId":1,"tags":{},"startTime":1759895147418,"traceId":"3a0a7c51d1549dfb"},{"name":"node-file-trace-build","duration":4132356,"timestamp":3633748072,"id":76,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1759895146058,"traceId":"3a0a7c51d1549dfb"},{"name":"apply-include-excludes","duration":320,"timestamp":3637880445,"id":85,"parentId":1,"tags":{},"startTime":1759895150191,"traceId":"3a0a7c51d1549dfb"},{"name":"print-tree-view","duration":2399,"timestamp":3637881018,"id":86,"parentId":1,"tags":{},"startTime":1759895150191,"traceId":"3a0a7c51d1549dfb"},{"name":"telemetry-flush","duration":32,"timestamp":3637883428,"id":87,"parentId":1,"tags":{},"startTime":1759895150194,"traceId":"3a0a7c51d1549dfb"},{"name":"next-build","duration":17493245,"timestamp":3620390218,"id":1,"tags":{"buildMode":"default","isTurboBuild":"true","version":"15.5.4","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1759895132700,"traceId":"3a0a7c51d1549dfb"}]
|
|
1
|
+
[{"name":"generate-buildid","duration":147,"timestamp":4796047400,"id":4,"parentId":1,"tags":{},"startTime":1759896308361,"traceId":"a26e44ee902bd4fd"},{"name":"load-custom-routes","duration":182,"timestamp":4796047598,"id":5,"parentId":1,"tags":{},"startTime":1759896308361,"traceId":"a26e44ee902bd4fd"},{"name":"create-dist-dir","duration":1974,"timestamp":4796092215,"id":6,"parentId":1,"tags":{},"startTime":1759896308406,"traceId":"a26e44ee902bd4fd"},{"name":"create-pages-mapping","duration":2441,"timestamp":4796135572,"id":7,"parentId":1,"tags":{},"startTime":1759896308449,"traceId":"a26e44ee902bd4fd"},{"name":"collect-app-files","duration":4975,"timestamp":4796138046,"id":8,"parentId":1,"tags":{},"startTime":1759896308451,"traceId":"a26e44ee902bd4fd"},{"name":"create-app-mapping","duration":927,"timestamp":4796143043,"id":9,"parentId":1,"tags":{},"startTime":1759896308456,"traceId":"a26e44ee902bd4fd"},{"name":"create-app-layouts","duration":186,"timestamp":4796143984,"id":10,"parentId":1,"tags":{},"startTime":1759896308457,"traceId":"a26e44ee902bd4fd"},{"name":"collect-default-files","duration":859,"timestamp":4796147325,"id":12,"parentId":1,"tags":{},"startTime":1759896308461,"traceId":"a26e44ee902bd4fd"},{"name":"generate-route-types","duration":27097,"timestamp":4796144465,"id":11,"parentId":1,"tags":{},"startTime":1759896308458,"traceId":"a26e44ee902bd4fd"},{"name":"public-dir-conflict-check","duration":685,"timestamp":4796171685,"id":13,"parentId":1,"tags":{},"startTime":1759896308485,"traceId":"a26e44ee902bd4fd"},{"name":"generate-routes-manifest","duration":2103,"timestamp":4796172490,"id":14,"parentId":1,"tags":{},"startTime":1759896308486,"traceId":"a26e44ee902bd4fd"},{"name":"run-turbopack-compiler","duration":7969853,"timestamp":4796192295,"id":16,"parentId":1,"tags":{},"startTime":1759896308506,"traceId":"a26e44ee902bd4fd"},{"name":"verify-and-lint","duration":1655817,"timestamp":4804183992,"id":19,"parentId":1,"tags":{},"startTime":1759896316497,"traceId":"a26e44ee902bd4fd"},{"name":"verify-typescript-setup","duration":4978483,"timestamp":4804180022,"id":18,"parentId":1,"tags":{},"startTime":1759896316493,"traceId":"a26e44ee902bd4fd"},{"name":"check-static-error-page","duration":2835,"timestamp":4809168813,"id":22,"parentId":21,"tags":{},"startTime":1759896321482,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":2040,"timestamp":4809256699,"id":23,"parentId":21,"tags":{"page":"/_app"},"startTime":1759896321570,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":1470,"timestamp":4809257278,"id":25,"parentId":21,"tags":{"page":"/_document"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":1530,"timestamp":4809257220,"id":24,"parentId":21,"tags":{"page":"/_error"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":317446,"timestamp":4809264309,"id":52,"parentId":28,"tags":{},"startTime":1759896321578,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":324432,"timestamp":4809257369,"id":28,"parentId":21,"tags":{"page":"/api/api-keys"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":333981,"timestamp":4809260478,"id":50,"parentId":46,"tags":{},"startTime":1759896321574,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":336940,"timestamp":4809257547,"id":46,"parentId":21,"tags":{"page":"/api/threads/runs/submit-client-tool-outputs"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":338555,"timestamp":4809265600,"id":55,"parentId":35,"tags":{},"startTime":1759896321579,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":346696,"timestamp":4809257488,"id":35,"parentId":21,"tags":{"page":"/api/assistants"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":339506,"timestamp":4809264749,"id":53,"parentId":27,"tags":{},"startTime":1759896321578,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":346912,"timestamp":4809257354,"id":27,"parentId":21,"tags":{"page":"/api/api-keys/[apiKeyId]"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":340388,"timestamp":4809263904,"id":51,"parentId":31,"tags":{},"startTime":1759896321577,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":346850,"timestamp":4809257449,"id":31,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/initial-messages"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":339074,"timestamp":4809265245,"id":54,"parentId":29,"tags":{},"startTime":1759896321579,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":346949,"timestamp":4809257377,"id":29,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions/[functionId]"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":343305,"timestamp":4809267609,"id":62,"parentId":42,"tags":{},"startTime":1759896321581,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":353412,"timestamp":4809257524,"id":42,"parentId":21,"tags":{"page":"/api/providers"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":349968,"timestamp":4809267995,"id":63,"parentId":41,"tags":{},"startTime":1759896321581,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":360468,"timestamp":4809257519,"id":41,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":360235,"timestamp":4809266767,"id":58,"parentId":34,"tags":{},"startTime":1759896321580,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":369549,"timestamp":4809257481,"id":34,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":380921,"timestamp":4809268230,"id":64,"parentId":45,"tags":{},"startTime":1759896321582,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":391637,"timestamp":4809257539,"id":45,"parentId":21,"tags":{"page":"/api/tasks"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":389989,"timestamp":4809268722,"id":65,"parentId":43,"tags":{},"startTime":1759896321582,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":401250,"timestamp":4809257529,"id":43,"parentId":21,"tags":{"page":"/api/tasks/[taskId]"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":402708,"timestamp":4809267118,"id":59,"parentId":33,"tags":{},"startTime":1759896321580,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":412415,"timestamp":4809257474,"id":33,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":421435,"timestamp":4809268987,"id":66,"parentId":47,"tags":{},"startTime":1759896321582,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":432897,"timestamp":4809257553,"id":47,"parentId":21,"tags":{"page":"/api/workspaces/[workspaceId]"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":440149,"timestamp":4809270786,"id":69,"parentId":26,"tags":{},"startTime":1759896321584,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":453667,"timestamp":4809257293,"id":26,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":449757,"timestamp":4809271026,"id":70,"parentId":48,"tags":{},"startTime":1759896321584,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":463250,"timestamp":4809257558,"id":48,"parentId":21,"tags":{"page":"/api/workspaces"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":459939,"timestamp":4809271285,"id":71,"parentId":30,"tags":{},"startTime":1759896321585,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":473913,"timestamp":4809257384,"id":30,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":463573,"timestamp":4809271685,"id":72,"parentId":32,"tags":{},"startTime":1759896321585,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":477826,"timestamp":4809257462,"id":32,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers/[mcpServerId]"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":466219,"timestamp":4809274525,"id":73,"parentId":49,"tags":{},"startTime":1759896321588,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":483205,"timestamp":4809257565,"id":49,"parentId":21,"tags":{"page":"/"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":561407,"timestamp":4809267402,"id":61,"parentId":39,"tags":{},"startTime":1759896321581,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":571352,"timestamp":4809257509,"id":39,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/assistants"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":584621,"timestamp":4809267263,"id":60,"parentId":40,"tags":{},"startTime":1759896321581,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":594433,"timestamp":4809257514,"id":40,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/models"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":600221,"timestamp":4809266151,"id":57,"parentId":37,"tags":{},"startTime":1759896321580,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":608906,"timestamp":4809257498,"id":37,"parentId":21,"tags":{"page":"/api/files"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":603429,"timestamp":4809265864,"id":56,"parentId":36,"tags":{},"startTime":1759896321579,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":611819,"timestamp":4809257493,"id":36,"parentId":21,"tags":{"page":"/api/files/[fileId]/contents"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":652753,"timestamp":4809270723,"id":68,"parentId":44,"tags":{},"startTime":1759896321584,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":665999,"timestamp":4809257534,"id":44,"parentId":21,"tags":{"page":"/api/tasks/callback"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"is-page-static","duration":661009,"timestamp":4809270283,"id":67,"parentId":38,"tags":{},"startTime":1759896321584,"traceId":"a26e44ee902bd4fd"},{"name":"check-page","duration":673835,"timestamp":4809257504,"id":38,"parentId":21,"tags":{"page":"/api/messages"},"startTime":1759896321571,"traceId":"a26e44ee902bd4fd"},{"name":"static-check","duration":763165,"timestamp":4809168208,"id":21,"parentId":1,"tags":{},"startTime":1759896321482,"traceId":"a26e44ee902bd4fd"},{"name":"generate-required-server-files","duration":225,"timestamp":4809931714,"id":75,"parentId":1,"tags":{},"startTime":1759896322245,"traceId":"a26e44ee902bd4fd"},{"name":"write-routes-manifest","duration":647,"timestamp":4809938014,"id":77,"parentId":1,"tags":{},"startTime":1759896322251,"traceId":"a26e44ee902bd4fd"},{"name":"load-dotenv","duration":15,"timestamp":4809953625,"id":80,"parentId":79,"tags":{},"startTime":1759896322267,"traceId":"a26e44ee902bd4fd"},{"name":"run-export-path-map","duration":336,"timestamp":4810063960,"id":81,"parentId":79,"tags":{},"startTime":1759896322377,"traceId":"a26e44ee902bd4fd"},{"name":"next-export","duration":1060333,"timestamp":4809953069,"id":79,"parentId":1,"tags":{},"startTime":1759896322266,"traceId":"a26e44ee902bd4fd"},{"name":"move-exported-app-not-found-","duration":3365,"timestamp":4811014512,"id":82,"parentId":78,"tags":{},"startTime":1759896323328,"traceId":"a26e44ee902bd4fd"},{"name":"move-exported-page","duration":37127,"timestamp":4811017978,"id":83,"parentId":78,"tags":{},"startTime":1759896323331,"traceId":"a26e44ee902bd4fd"},{"name":"static-generation","duration":1458432,"timestamp":4809947824,"id":78,"parentId":1,"tags":{},"startTime":1759896322261,"traceId":"a26e44ee902bd4fd"},{"name":"write-routes-manifest","duration":55991,"timestamp":4811406492,"id":84,"parentId":1,"tags":{},"startTime":1759896323720,"traceId":"a26e44ee902bd4fd"},{"name":"node-file-trace-build","duration":3914674,"timestamp":4809933767,"id":76,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1759896322247,"traceId":"a26e44ee902bd4fd"},{"name":"apply-include-excludes","duration":309,"timestamp":4813848457,"id":85,"parentId":1,"tags":{},"startTime":1759896326162,"traceId":"a26e44ee902bd4fd"},{"name":"print-tree-view","duration":2078,"timestamp":4813849031,"id":86,"parentId":1,"tags":{},"startTime":1759896326162,"traceId":"a26e44ee902bd4fd"},{"name":"telemetry-flush","duration":23,"timestamp":4813851116,"id":87,"parentId":1,"tags":{},"startTime":1759896326165,"traceId":"a26e44ee902bd4fd"},{"name":"next-build","duration":18206239,"timestamp":4795644903,"id":1,"tags":{"buildMode":"default","isTurboBuild":"true","version":"15.5.4","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1759896307958,"traceId":"a26e44ee902bd4fd"}]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superinterface/server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"bin": {
|
|
5
5
|
"superinterface-server": "./bin/index.cjs"
|
|
6
6
|
},
|
|
@@ -159,6 +159,7 @@
|
|
|
159
159
|
"dotenv": "^16.4.5",
|
|
160
160
|
"groq-sdk": "^0.33.0",
|
|
161
161
|
"p-iteration": "^1.1.8",
|
|
162
|
+
"prisma": "^6.16.3",
|
|
162
163
|
"prisma-json-types-generator": "^3.6.2",
|
|
163
164
|
"replicate": "^1.2.0",
|
|
164
165
|
"supercompat": "^3.8.0",
|
|
@@ -179,7 +180,6 @@
|
|
|
179
180
|
"eslint": "^9",
|
|
180
181
|
"eslint-config-next": "15.5.4",
|
|
181
182
|
"next": "15.5.4",
|
|
182
|
-
"prisma": "^6.16.3",
|
|
183
183
|
"react": "^19.1.0",
|
|
184
184
|
"react-dom": "^19.1.0",
|
|
185
185
|
"tsc-alias": "^1.8.12",
|
package/scripts/cli.ts
CHANGED
|
@@ -5,8 +5,10 @@ import { Command } from 'commander'
|
|
|
5
5
|
import { createOrganization } from './commands/organizations/create'
|
|
6
6
|
import { createOrganizationApiKey } from './commands/organizations/api-keys/create'
|
|
7
7
|
import { runServer } from './commands/run/server'
|
|
8
|
+
import { prismaDeploy } from './commands/prisma/deploy'
|
|
8
9
|
import { CliError } from './utils/errors'
|
|
9
10
|
import { ensureEnv, ensureDatabaseUrl } from './utils/env'
|
|
11
|
+
import { loadPrismaClient } from './utils/loadPrisma'
|
|
10
12
|
|
|
11
13
|
const program = new Command()
|
|
12
14
|
.name('@superinterface/server')
|
|
@@ -37,8 +39,7 @@ const withAction = <Options extends Record<string, unknown>>(
|
|
|
37
39
|
await ensureEnv()
|
|
38
40
|
ensureDatabaseUrl()
|
|
39
41
|
|
|
40
|
-
|
|
41
|
-
prisma = prismaModule.prisma
|
|
42
|
+
prisma = await loadPrismaClient()
|
|
42
43
|
|
|
43
44
|
const actionOptions = { ...options, prisma } as ActionOptions<Options>
|
|
44
45
|
|
|
@@ -101,6 +102,20 @@ run
|
|
|
101
102
|
}
|
|
102
103
|
})
|
|
103
104
|
|
|
105
|
+
const prisma = program.command('prisma').description('Prisma utilities')
|
|
106
|
+
|
|
107
|
+
prisma
|
|
108
|
+
.command('deploy')
|
|
109
|
+
.description('Run prisma migrate deploy')
|
|
110
|
+
.option('--schema <path>', 'Path to prisma schema file')
|
|
111
|
+
.action(async (options: { schema?: string }) => {
|
|
112
|
+
try {
|
|
113
|
+
await prismaDeploy({ schema: options.schema })
|
|
114
|
+
} catch (error) {
|
|
115
|
+
handleCliError(error)
|
|
116
|
+
}
|
|
117
|
+
})
|
|
118
|
+
|
|
104
119
|
if (process.argv.length <= 2) {
|
|
105
120
|
program.outputHelp()
|
|
106
121
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { spawn } from 'node:child_process'
|
|
2
|
+
import process from 'node:process'
|
|
3
|
+
import { CliError } from '../../utils/errors'
|
|
4
|
+
import { ensureEnv, ensureDatabaseUrl } from '../../utils/env'
|
|
5
|
+
|
|
6
|
+
export type PrismaDeployOptions = {
|
|
7
|
+
schema?: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const prismaDeploy = async ({ schema }: PrismaDeployOptions = {}) => {
|
|
11
|
+
await ensureEnv()
|
|
12
|
+
ensureDatabaseUrl()
|
|
13
|
+
|
|
14
|
+
await new Promise<void>((resolve, reject) => {
|
|
15
|
+
const args = ['prisma', 'migrate', 'deploy']
|
|
16
|
+
|
|
17
|
+
if (schema) {
|
|
18
|
+
args.push('--schema', schema)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const child = spawn('npx', args, {
|
|
22
|
+
stdio: 'inherit',
|
|
23
|
+
env: process.env,
|
|
24
|
+
shell: true,
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
child.once('error', (error) => {
|
|
28
|
+
reject(
|
|
29
|
+
new CliError('Failed to run Prisma migrate deploy.', { cause: error }),
|
|
30
|
+
)
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
child.once('exit', (code) => {
|
|
34
|
+
if (typeof code === 'number' && code !== 0) {
|
|
35
|
+
reject(new CliError(`Prisma migrate deploy exited with code ${code}.`))
|
|
36
|
+
return
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
resolve()
|
|
40
|
+
})
|
|
41
|
+
})
|
|
42
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { PrismaClient } from '@prisma/client'
|
|
2
|
+
import { CliError } from './errors'
|
|
3
|
+
|
|
4
|
+
const prismaModuleCandidates = [
|
|
5
|
+
'../../dist/lib/prisma/index.js',
|
|
6
|
+
'../../src/lib/prisma',
|
|
7
|
+
] as const
|
|
8
|
+
|
|
9
|
+
type PrismaModule = {
|
|
10
|
+
prisma?: PrismaClient
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const isModuleNotFoundError = (error: unknown, modulePath: string) => {
|
|
14
|
+
if (!(error instanceof Error)) return false
|
|
15
|
+
|
|
16
|
+
const err = error as NodeJS.ErrnoException & { code?: string }
|
|
17
|
+
if (
|
|
18
|
+
err.code &&
|
|
19
|
+
err.code !== 'MODULE_NOT_FOUND' &&
|
|
20
|
+
err.code !== 'ERR_MODULE_NOT_FOUND'
|
|
21
|
+
) {
|
|
22
|
+
return false
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const resolvedPath = new URL(modulePath, import.meta.url).pathname
|
|
26
|
+
return (
|
|
27
|
+
err.message?.includes(modulePath) ||
|
|
28
|
+
err.message?.includes(resolvedPath) ||
|
|
29
|
+
false
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const loadPrismaClient = async (): Promise<PrismaClient> => {
|
|
34
|
+
let lastError: unknown
|
|
35
|
+
|
|
36
|
+
for (const candidate of prismaModuleCandidates) {
|
|
37
|
+
try {
|
|
38
|
+
const module = (await import(candidate)) as PrismaModule
|
|
39
|
+
if (module?.prisma) {
|
|
40
|
+
return module.prisma
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
lastError = new CliError(
|
|
44
|
+
`Module "${candidate}" does not export a prisma client.`,
|
|
45
|
+
)
|
|
46
|
+
} catch (error) {
|
|
47
|
+
if (isModuleNotFoundError(error, candidate)) {
|
|
48
|
+
lastError = error
|
|
49
|
+
continue
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
throw new CliError('Failed to load Prisma client.', { cause: error })
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
throw new CliError(
|
|
57
|
+
'Prisma client module not found. Run `prisma generate` (after `npm run build:lib`) before using this command.',
|
|
58
|
+
{ cause: lastError },
|
|
59
|
+
)
|
|
60
|
+
}
|
|
File without changes
|
/package/.next/static/{nYnLUt9M9vbekJUy4SqLM → AV1cmwx295lp-1-2s0TpY}/_clientMiddlewareManifest.json
RENAMED
|
File without changes
|
|
File without changes
|