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 所做的更改会自动热重载。
要构建应用,请运行
bun run build。
terminal
terminal
请参阅 Remix 文档 了解更多信息。