Comments (2)
你发现了一个隐藏的功能,umi 4 以前做的这个兼容 vercel api router 的功能,太老了,而且几乎 0 人知道 0 人使用,加上 vercel 现在 api 的约定可能也发生了一些变化,所以到现在为止它不可用了也是正常的。
现在如果要用 vercel api ,最好自己根据 vercel api 的文档去编写和部署;不要用 umi 内置这个功能了,因为几乎没人用,也比不过 nextjs ,目测它的意义不大了。
如果有兴趣希望修订这部分让它重新可用,欢迎 PR 修复,代码路径在 packages/preset-umi/src/features/apiRoute/*
。
from umi.
绕过方案: 将 API 路由的构建产物一并提交到 Git。Ref: umijs/umi-blog-example#11
from umi.
Related Issues (20)
- umi/examples/mfsu-independent不能启动 HOT 2
- [Bug] antd 5 umi4。通过app.tsx里面 rootContainer配置antd全局国际化,不生效 HOT 6
- [Bug] umi 4 使用 MF v2 插件问题 HOT 6
- [Bug] Linux环境打包后,chunk中出现React,导致报错:ReferenceError: React is not defined HOT 3
- 1.import { history, request } from 'umi'; HOT 3
- umi4.x 配置base之后,history.push 跳转相对路径不生效 HOT 2
- 从v3升级到v4 No matching export in "src/.umi/exports.ts" for import "useModel" HOT 4
- [Feature Request] biomejs support HOT 1
- [Bug] openapi生成的services中的数据类型 HOT 1
- [Bug] useModel 怎么关闭隐式调用 HOT 2
- [Bug] useModel 怎么关闭隐式调用 HOT 2
- 可以打包两个html文件html文件对应的路由不一样在哪配置呢? HOT 2
- [Bug] model 插件和 antd 改变主题互相冲突 HOT 2
- useModel在login之前就执行了,导致没有拿到models的结果,登录后也不会再次执行 HOT 1
- [Bug] Proxy can't support WebSocket and make umi crashed HOT 2
- [Bug] umijs4版本左侧菜单折叠后再打开 submenu动画有残影 HOT 1
- umijs 怎么打包配置多个页面呢? HOT 1
- [Bug] umi^4.2.5怎么把id="app" 自定义其他名称,比如叫id="app1" HOT 2
- [Feature] 优先使用用户安装的 `babel-plugin-react-compiler`
- [Task] PR #12398 代码修复 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from umi.