https://github.com/truewinter/astro-copy-prod-deps
Astro integration that copies only the dependencies needed in production for SSR and hybrid websites
https://github.com/truewinter/astro-copy-prod-deps
astro-integration withastro
Last synced: 4 months ago
JSON representation
Astro integration that copies only the dependencies needed in production for SSR and hybrid websites
- Host: GitHub
- URL: https://github.com/truewinter/astro-copy-prod-deps
- Owner: TrueWinter
- License: mit
- Created: 2024-09-05T20:17:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-24T19:08:47.000Z (over 1 year ago)
- Last Synced: 2026-01-13T08:15:28.103Z (5 months ago)
- Topics: astro-integration, withastro
- Language: JavaScript
- Homepage:
- Size: 115 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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:
```js
import copyProdDeps from `astro-copy-prod-deps`;
export default defineConfig({
integrations: [copyProdDeps()]
});
```