apitable / apitable/widget-cli

Miss file content when release widget

Abierto
#3 2 comentarios 0 reacciones 1 asignado Reclamado por @Sky-FE Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
2
Forks
4
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I succeed in releasing the widget.

```log
* 正在执行任务: npm run release

> release
> widget-cli release --uploadHost http://192.168.31.221

release version [0.0.8]:
v0.0.8

=== Compiling Widget ===
asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
widget_bundle.min.js (367 KiB)
entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
bundle (367 KiB)
widget_bundle.min.js

webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
Compile Succeed: ./dist/packed/widget_bundle.min.js
compiling... done

=== Package Details ===
name: 发货
host: http://192.168.31.221
packageId: wpkQ3GjB7AVqW
spaceId: spcfBgNl5rFQU
version: 0.0.8
releaseBundleSize: 367.34 kB
description 发货 description
icon ./package_icon.png
cover ./cover.png
authorIcon ./author_icon.png
authorLink undefined
sandbox true
releaseType space

uploading bundle... done
uploading package assets... done
releasing... done
successful release widget wpkQ3GjB7AVqW@0.0.8
```

---

But failed to load in the release widget.

image
image
image

---

And I found the file size just only 64k.

```log
root@frappe:/tmp# wget http://192.168.31.221/assets/widget/wpkQ3GjB7AVqW/0.0.8/41219692cc574538b2362b20a16740f8.js
--2023-04-19 07:42:22-- http://192.168.31.221/assets/widget/wpkQ3GjB7AVqW/0.0.8/41219692cc574538b2362b20a16740f8.js
Connecting to 192.168.31.221:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 65536 (64K) [application/javascript]
Saving to: ‘41219692cc574538b2362b20a16740f8.js’

41219692cc574538b2362b20a16740f8.js 100%[=====================================================================================>] 64.00K --.-KB/s in 0s

2023-04-19 07:42:22 (346 MB/s) - ‘41219692cc574538b2362b20a16740f8.js’ saved [65536/65536]

root@frappe:/tmp# ls -lah 41219692cc574538b2362b20a16740f8.js
-rw-r--r-- 1 root root 64K Apr 19 07:34 41219692cc574538b2362b20a16740f8.js
```

```log
$ ls -lah
total 736
drwxr-xr-x 3 zsnmwy staff 96B 4 19 15:34 .
drwxr-xr-x 4 zsnmwy staff 128B 4 19 14:49 ..
-rw-r--r-- 1 zsnmwy staff 367K 4 19 15:34 widget_bundle.min.js
```

---

I replace the file through the minio console.

It's work.

---

The question may cause by the gateway.

https://github.com/apitable/apitable/blob/404dedbd55cd6a6a2a3288280fb16515e2e60c50/gateway/conf.d/default.conf#L25-L30

---

I use the `docker-compose.yaml` to deploy apitable.

https://github.com/apitable/apitable/blob/develop/docker-compose.yaml

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.