You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I may be doing something wrong yet dont know) im new to svelte 🤣 trying to run it on lambda aws...
Just as the title states,
i have added config.kit.version.pollInterval setting in svelte.config.js,
In a attempt to create custom adapter for AWS Lambda, i'm directly the calling a javascript file with nodejs that would very roughly simulate a lambda request call, then i noticed that the process would hang for a minute before exiting, removing the .pollInterval setting stopped this from happening.
I aws expecting this to not run on nodejs runtime but client only.
svelte.config.js import the adapter (based on adapter-node build process) includes the shims installPolyfills,
and the adapter code is basically just this, setting Server option prerendering.fallback = true seems to solve the problem but then i dont receive any SSR content
constreq=newRequest(url.toString(),{method: method,headers: headers,body: null});constserver=newServer(manifest);awaitserver.init({ env });returnawaitserver.respond(req,{platform: { req },// it hangs without thisprerendering: {fallback: true}});
this is the js file that calls and attempts to use the adapter, it calls the /about url which is set prerender = false so it gives some output
Describe the bug
Just as the title states,
i have added
config.kit.version.pollInterval
setting insvelte.config.js
,In a attempt to create custom adapter for AWS Lambda, i'm directly the calling a javascript file with nodejs that would very roughly simulate a lambda request call, then i noticed that the process would hang for a minute before exiting, removing the
.pollInterval
setting stopped this from happening.I aws expecting this to not run on nodejs runtime but client only.
svelte.config.js
import the adapter (based on adapter-node build process) includes the shims installPolyfills,and the adapter code is basically just this, setting Server option
prerendering.fallback = true
seems to solve the problem but then i dont receive any SSR contentthis is the js file that calls and attempts to use the adapter, it calls the
/about
url which is setprerender = false
so it gives some outputReproduction
Repo: [email protected]:falmar/svelte-kit-version-poll-issue.git
To reproduce the issue,
lambda.js
at the root project directory, which should hang for a minute after giving the outputconfig.kit.version.pollInterval
setting.Is something that I wouldn't notice at all if wasn't trying to run it on a single execution unlike a node server which is continuously running...
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: