luci1
[Deploy] - Astro SSR
I'm trying to deploy a Astro SSR project, but is showing the error message "Server Error/Application failed to respond"
I tried using the following commands to
start
:
- node dist/server/entry.mjs
(current)
- astro preview
- astro preview --port $PORT
I'm not using Dockerfile or custom build, i'm just running npm build
(alias to default astro build
) and npm start
.
My astro.config.mjs
:
17 replies
node_modules
I'm trying to deploy using my build script.
The build script consist in install normally the packages (including the development packages), but after, I need to remove the node_modules file to install only the production package's, but I got the error about .cache folder
#12 1.527 rm: cannot remove 'node_modules/.cache': Device or resource busy
Someone knows a way to reinstall the node_modules only for production?
The current build command:
The "tsup" will convert my TypeScript project to JavaScript project at dist
folder, so I don't need the src
folder anymore.68 replies