演示 Remix 静态导出并部署到 Wasmer Edge 的完整流程
remix-wasmer-starter — Remix 启动器模板
作者 wasmer-examples
基于 Remix 的静态站点启动器,构建后输出静态资源并部署到 Wasmer Edge。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
首页路由通过 getStaticPaths() 在构建时生成根路径
remix.config.js 中 serverBuildTarget 设为 "wasmer" 并指定输出目录
构建产物位于 build/client,可作为静态站点直接托管
提供本地开发与静态导出预览两条命令路径
模板详细介绍
这是一个面向 Wasmer Edge 的 Remix 静态站点示例项目。它演示如何把 Remix 项目导出为静态 HTML 并在 Wasmer Edge 上以静态站点方式提供服务。
项目通过 Remix 的静态生成能力工作:首页路由 app/routes/_index.tsx 导出 getStaticPaths(),让 Remix 在构建时生成根路径 /;remix.config.js 将 serverBuildTarget 设为 "wasmer" 并配置 Wasmer 要服务的输出目录;执行 npm run build 后,静态资源输出到 build/client,可直接作为静态站点交给 Wasmer Edge。
使用上有明确限制:新增路由或 loader 时需要确保它们能在静态输出目标下被预渲染,否则不适用于该模式。仓库以 MIT 许可发布,演示站点为 https://remix-wasmer-starter.wasmer.app/。
适合你的项目吗?
适用场景
- 需要一个可部署到 Wasmer Edge 的 Remix 静态站点起点
- 想了解 Remix 静态生成与 serverBuildTarget 配置的写法
- 为静态托管准备 Remix 构建产物并验证预览效果
适合人群
- 使用 Remix 并计划以静态方式部署的开发者
- 需要在 Wasmer Edge 上托管静态站点的项目
- 希望参考 Remix 静态导出配置的团队
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
本地运行:npm install 后执行 npm run dev,访问 http://127.0.0.1:3000/
- 2
验证静态导出:npm run build 后执行 npm run preview
- 3
部署时先构建,再让 Wasmer Edge 指向 build/client 静态资源
- 4
新增路由或 loader 需确保可在静态输出目标下预渲染
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- 新增路由或 loader 时必须确保它们能在静态输出目标下被预渲染,否则无法用于该静态站点模式。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
https://github.com/wasmer-examples/remix-wasmer-starter/blob/main/LICENSEhttps://github.com/wasmer-examples/remix-wasmer-starter/blob/main/README.mdAdd additional routes or loaders as needed—just ensure they can be prerendered when targeting static output.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-07。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 83 / 100
- 技术栈
- Remix · React
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-05-18
- 截图检查日期
- 2026-10-07
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Remix。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-08
查看当时使用的来源资料
SHA-256: 464607d729189223ac08b84e0884c1ee923c44cdf1096482c6935d43566cc1f9
2026-10-07T19:02:21.348Z
来源文件 / 仓库# Remix Static Site + Wasmer This example shows how to export a **Remix** project as static HTML and serve it on **Wasmer Edge**. ## Demo https://remix-wasmer-starter.wasmer.app/ ## How it Works The project uses Remix’s static generation capabilities: * `app/routes/_index.tsx` renders the home page and exports `getStaticPaths()` so Remix knows to generate `/` at build time. * `remix.config.js` points `serverBuildTarget` to `"wasmer"` and sets up the output directory Wasmer will serve. * `npm run build` emits static assets in `build/client` which Wasmer Edge can treat as a static site. Add additional routes or loaders as needed—just ensure they can be prerendered when targeting static output. ## Running Locally ```bash npm install npm run dev ``` Visit `http://127.0.0.1:3000/` for live development. To test the static export that Wasmer serves: ```bash npm run build npm run preview ``` ## Deploying to Wasmer (Overview) 1. Build the project: `npm run build` (or `pnpm build`, etc.). 2. Point Wasmer Edge at the generated static assets (e.g., `build/client`). 3. Deploy and open `https://<your-subdomain>.wasmer.app/`.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

medusa2-starter
A Turborepo monorepo integrating a Medusa2 backend with a Remix frontend, featuring a Coffee Roast themed dyna…
Remix · 电商

remix-knowledge-base
Knowledge Base starter kit with WYSIWYG, Markdown, GPT, and Multi-language support. Built with Remix, Tailwind…
Remix · 启动器

docs-starter
Remix starter for creating documentation websites with Hygraph
Remix · 文档

directed-stack
Directus + Remix full-stack starter
Remix · 启动器

tailwind-remix-starter
Free and open-source starter kit that helps you get started with Tailwind CSS, Remix and Flowbite React
Remix · 启动器

remix-vite-markdown-pwa
A RemixJS starter template focused on performance, offering dynamic content, optimized loading, and PWA featur…
Remix · 博客
