'How to deploy node express as backend and depoy sveltekit as front on the same host?
sorry i'm new to sveltekit and i don't know how to deploy it with node express as backened on the same host is it possible to deploy them on the same host ? or they should be on the separate host for the apis
Solution 1:[1]
Finally I found the answer
first you install the node-adapter
like this: npm i -D @sveltejs/adapter-node@next
And then read the guides from here
https://kit.svelte.dev/docs/adapters.
It shows how to set your adaptor to node
here is an example:
https://kit.svelte.dev/docs/adapters
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Tyler2P |