0.1.2 • Published 1 year ago

@orchy-mfe/next-plugin v0.1.2

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

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 your Next.js application 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>