1.0.4 • Published 9 months ago
astro-copy-prod-deps v1.0.4
astro-copy-prod-deps
astro-copy-prod-deps is an Astro integration for use with hybrid and SSR websites that copies only the dependencies needed in production from node_modules to the dist/server directory.
This is useful if you have a CI server building your website and don't want to run npm install on your production web server.

Installation
Automatic
Run npx astro add astro-copy-prod-deps to install the integration.
Manual
Modify your astro.config.mjs file as follows:
import copyProdDeps from `astro-copy-prod-deps`;
export default defineConfig({
integrations: [copyProdDeps()]
});