web3moloh
web3moloh
TTCTheo's Typesafe Cult
Created by web3moloh on 7/7/2023 in #questions
Nextjs request's order in async api
only if i put sleep for few second it's working but it looks like a bad solution\
6 replies
TTCTheo's Typesafe Cult
Created by web3moloh on 7/7/2023 in #questions
Nextjs request's order in async api
6 replies
TTCTheo's Typesafe Cult
Created by web3moloh on 6/16/2023 in #questions
Is it possible dynamically create serverless function on vercel from code?
iay could work, i am going do open source so maybe later some one help with ALOT of work), ok thank you so much, ll try work on concept further
13 replies
TTCTheo's Typesafe Cult
Created by web3moloh on 6/16/2023 in #questions
Is it possible dynamically create serverless function on vercel from code?
because ll be cool later has features like see changes history and navigate there, plus you can always see your changes, better to test and have logs from (build and runtime)
13 replies
TTCTheo's Typesafe Cult
Created by web3moloh on 6/16/2023 in #questions
Is it possible dynamically create serverless function on vercel from code?
hm, iya this could work i just not sure about package installation, i think if not possible create function dynamically i can commit it on github and turbo build it'll take much more time but generally looks better than eval in long term vision
13 replies
TTCTheo's Typesafe Cult
Created by web3moloh on 6/16/2023 in #questions
Is it possible dynamically create serverless function on vercel from code?
it's an error Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: ENOENT: no such file or directory, mkdir '.vercel'","reason":{"errorType":"Error","errorMessage":"ENOENT: no such file or directory, mkdir '.vercel'","code":"ENOENT","errno":-2,"syscall":"mkdir","path":".vercel","stack":["Error: ENOENT: no such file or directory, mkdir '.vercel'"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: Error: ENOENT: no such file or directory, mkdir '.vercel'"," at process.<anonymous> (file:///var/runtime/index.mjs:1189:17)"," at process.emit (node:events:525:35)"," at process.emit (/var/task/_vc/sourcemap_support.js:602:21)"," at emit (node:internal/process/promises:149:20)"," at processPromiseRejections (node:internal/process/promises:283:27)"," at processTicksAndRejections (node:internal/process/task_queues:96:32)"]} Unknown application error occurred Runtime.Unknown
13 replies
TTCTheo's Typesafe Cult
Created by web3moloh on 6/16/2023 in #questions
Is it possible dynamically create serverless function on vercel from code?
Generally i want to call serverless function on vercel and create another serveless function in runtime that it was possible immediately call new function after creation without rebuilding a project. Problem with any attacks or danger code i want to solve by creating branch on github under every username that every user has separate codebase and environment (how i understand vercel creating unique environment under every commit and branch) not sure about this solution but i think it could work. Originally Idea that user + AI can create automative solution by prompt. Like 30+ nodes(serverless functions) with different logic and they can communicate with each other by defined protocol. This is how i am trying to create function that create serverless function https://github.com/andyvauliln/turbo-demo/blob/main/apps/web/api/create/run.js
13 replies