GithubHelp home page GithubHelp logo

Comments (2)

fz6m avatar fz6m commented on May 20, 2024

你发现了一个隐藏的功能,umi 4 以前做的这个兼容 vercel api router 的功能,太老了,而且几乎 0 人知道 0 人使用,加上 vercel 现在 api 的约定可能也发生了一些变化,所以到现在为止它不可用了也是正常的。

现在如果要用 vercel api ,最好自己根据 vercel api 的文档去编写和部署;不要用 umi 内置这个功能了,因为几乎没人用,也比不过 nextjs ,目测它的意义不大了。

如果有兴趣希望修订这部分让它重新可用,欢迎 PR 修复,代码路径在 packages/preset-umi/src/features/apiRoute/*

from umi.

dengfuping avatar dengfuping commented on May 20, 2024

绕过方案: 将 API 路由的构建产物一并提交到 Git。Ref: umijs/umi-blog-example#11

from umi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.