Skip to main content
Remix 开发服务器(remix dev)依赖于 Bun 未实现的 Node.js API。本指南使用 Bun 来初始化项目和安装依赖,并使用 Node.js 来运行开发服务器。

使用 create-remix 初始化一个 Remix 应用。
terminal

要启动开发服务器,在项目根目录下运行 bun run dev。这会使用 Node.js 运行 remix dev 命令。
terminal

打开 http://localhost:3000 查看应用。你对 app/routes/_index.tsx 所做的更改会在浏览器中热重载。
在 localhost 上运行的 Remix 应用

要构建你的应用,运行 bun run build
terminal
然后从项目根目录启动应用。
terminal

参见 Remix 文档 了解更多。