I am trying to deploy Astro SSR with Node adapter standalone mode to shared host
first I installed Node adapter
yarn astro add node
then I update the mode to standalone :
export default defineConfig({
adapter: node({
mode: 'standalone'
})
});
and finally I build it and it generate two folders server and client and I am able to run The Astro web app locally using :
node entery.mjs
in my shared host there is Node.js app manager which helping me to run node js app
but what is the way to run it? I use node entery.mjs
but I get two errors:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'cookie' imported from /home/quickpor/mysite/server/chunks/_@astrojs-ssr-adapter_BQ9fYVWY.mjs
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'server-destroy' imported from /home/quickpor/mysite/server/chunks/_@astrojs-ssr-adapter_BQ9fYVWY.mjs