PACKAGES
Rasengan Netlify
The @rasenganjs/netlify package is an adapter that configures Rasengan.js applications for deployment on the Netlify platform. It ensures that the project is properly structured and optimized for Netlify's serverless environment.
Installation
npm install @rasenganjs/netlify
Configuration
To configure Rasengan.js for Netlify, you need to import the adapter in your rasengan.config.js file and integrate it with the Rasengan.js plugin.
Example Configuration
import { defineConfig } from 'rasengan'; import { rasengan } from 'rasengan/plugin'; import { configure } from '@rasenganjs/netlify'; export default defineConfig({ vite: { plugins: [ rasengan({ adapter: configure(), }), ], }, });
In the example above, the configure function from @rasenganjs/netlify is used to set up the Netlify adapter for the Rasengan.js application. The adapter is then passed to the rasengan plugin exported from rasengan/plugin to enable the necessary features for Netlify deployment.
configure() doesn't take any meaningful options today. Call it with no arguments as shown above.
Deployment
Once the adapter is configured, you can deploy your Rasengan.js application using Netlify's CLI:
netlify deploy
Alternatively, you can link your GitHub repository to Netlify, and it will automatically detect the configuration and deploy your application.
For SSR builds (ssr: true with prerender disabled), the adapter
generates a Netlify Function running on
Futon, the same
server engine every other Rasengan.js deployment target runs on. SPA and
SSG builds deploy as pure static output, no function involved.
Community
Join the Rasengan.js community to get support, ask questions, and share your projects:
- GitHub Discussions : Ask questions and share ideas.
- X (Twitter) : Stay updated with the latest news.
- Linkedin : Follow the company page.
Let's build something amazing with Rasengan.js! 🚀
License
This package is MIT licensed.
