歡迎使用 Remix + Vite + shadcn/ui!

📖 請參閱 Remix 文件Remix Vite 文件 以了解支援功能的詳細資訊。

開始使用

Node 伺服器

npx create-remix@latest --template jacob-ebey/remix-shadcn

Cloudflare Pages

npx create-remix@latest --template https://github.com/jacob-ebey/remix-shadcn/tree/cloudflare

或是使用具有登入流程和 Drizzle ORM 支援的 SQLite 資料庫的更完善範本

Node 伺服器

npx create-remix@latest --template https://github.com/jacob-ebey/remix-shadcn/tree/drizzle

Cloudflare Pages

npx create-remix@latest --template https://github.com/jacob-ebey/remix-shadcn/tree/drizzle-cloudflare

內建主題切換器

image

image

開發

執行 Vite 開發伺服器

npm run dev

部署

首先,為生產環境建置您的應用程式

npm run build

設定您的環境

NODE_ENV='production'

然後在生產模式下執行應用程式

npm start

現在您需要選擇一個主機來部署它。

DIY

如果您熟悉部署 Node 應用程式,內建的 Remix 應用程式伺服器已準備好用於生產環境。

請務必部署 `npm run build` 和伺服器的輸出

  • server.js
  • build/server
  • build/client

請查看提供的 Dockerfile,以了解有關如何配置生產環境的更多詳細資訊。