@keadex/mina-live 2.10.3 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -6
- package/index.css +480 -7341
- package/index.js +1 -1
- package/mina-live-plugin.js +1 -1
- package/mina_live_bg.wasm +0 -0
- package/mina_live_worker_wasm.js +1 -1
- package/package.json +61 -58
- package/src/components/MinaLive/MinaLive.d.ts +2 -3
- package/src/tauri/tauri-web-adapter.d.ts +3 -0
package/README.md
CHANGED
|
@@ -22,8 +22,6 @@ Specifically, this library provides a React component that allows you to embed K
|
|
|
22
22
|
|
|
23
23
|
## Usage with React
|
|
24
24
|
|
|
25
|
-
For a working example, please visit [this folder](https://github.com/keadex/keadex/tree/main/examples/mina-live-cra-example).
|
|
26
|
-
|
|
27
25
|
### Install
|
|
28
26
|
|
|
29
27
|
```shell
|
|
@@ -139,11 +137,11 @@ const nextConfig: NextConfig = {
|
|
|
139
137
|
export default withMinaLive()(nextConfig);
|
|
140
138
|
```
|
|
141
139
|
|
|
142
|
-
### Configure the Next.js
|
|
140
|
+
### Configure the Next.js Proxy
|
|
143
141
|
|
|
144
|
-
To enable Mina Live to load all required assets, you need to configure the Next.js
|
|
142
|
+
To enable Mina Live to load all required assets, you need to configure the Next.js proxy by including the proxy provided by the Mina Live package.
|
|
145
143
|
|
|
146
|
-
`src\
|
|
144
|
+
`src\proxy.ts`
|
|
147
145
|
|
|
148
146
|
```TS
|
|
149
147
|
import { NextResponse, NextRequest } from "next/server";
|
|
@@ -153,7 +151,7 @@ export const config = {
|
|
|
153
151
|
matcher: ["/((?!api|_next/static|_next/image|assets|favicon.ico|sw.js).*)"],
|
|
154
152
|
};
|
|
155
153
|
|
|
156
|
-
export function
|
|
154
|
+
export function proxy(req: NextRequest) {
|
|
157
155
|
const minaMiddlewareResponse = minaMiddleware(req);
|
|
158
156
|
if (minaMiddlewareResponse) {
|
|
159
157
|
return minaMiddlewareResponse;
|