@orchy-mfe/next-plugin
v0.1.2
Published
This plugin allows you render in `orchy` a `Next.js` application as a Micro Frontend.
Downloads
15
Readme
orchy-next-plugin
This plugin allows you render in orchy a Next.js application as a Micro Frontend.
NOTE: this plugin will work only with Next.js v13 and without the new app directory experimental feature.
Plugin configuration
The plugin accepts one attribute:
nextBase: the path where yourNext.jsapplication is exposed.
Configuration example
JSON
{
"type": "element",
"tag": "orchy-next-plugin",
"url": "//localhost:3000/orchy-next-plugin.js",
"attributes": {
"nextBase": "http://localhost:3001"
}
}HTML
<script type="module" src="//localhost:3000/orchy-next-plugin.js"></script>
<orchy-next-plugin orchy-element nextBase="http://localhost:3001"></orchy-next-plugin>