开源白板工具(SaaS),一体化白板,包含思维导图、流程图、自由画等。All in one open-source whiteboard tool with mind, flowchart, freehand and etc.
Add files via upload (#154)
waycaan9f1b35368e5e
diff --git a/CFPAGE-DEPLOY.md b/CFPAGE-DEPLOY.mdnew file mode 100644index 0000000..ee4af0e--- /dev/null+++ b/CFPAGE-DEPLOY.md@@ -0,0 +1,48 @@+##++### 1. 打开 Cloudflare Pages+访问:https://dash.cloudflare.com/pages++### 2. 创建项目+- 点击 **"Create a project"**+- 选择 **"Connect to Git"**+- 选择您的 GitHub 仓库++### 3. 配置构建设置+在可视化界面中填写:++```+Framework preset: None+Build command: npm run build:web+Build output directory: dist/apps/web+Root directory: (留空)+```++在 **Environment variables** 部分添加:+```+NODE_VERSION = 20+```++### 4. 点击 "Save and Deploy"+就这么简单!++## 项目已包含的配置文件++- `apps/web/public/_redirects` - SPA 路由支持+- `apps/web/public/_headers` - 基本缓存配置+- `package.json` 中的 `build:web` 脚本++## 部署后检查++1. 访问分配的 `.pages.dev` 域名+2. 确认网站正常运行+3. 测试页面刷新是否正常(SPA 路由)++## 自定义域名(可选)++部署成功后,在 Cloudflare Pages 项目中:+1. 点击 **"Custom domains"**+2. 添加您的域名+3. 按提示配置 DNS++就是这么简单!无需复杂的配置文件。diff --git a/apps/web/public/_headers b/apps/web/public/_headersnew file mode 100644index 0000000..deecbfc--- /dev/null+++ b/apps/web/public/_headers@@ -0,0 +1,9 @@+# 基本缓存配置+/*+ Cache-Control: public, max-age=31536000, immutable++/*.html+ Cache-Control: public, max-age=0, must-revalidate++/+ Cache-Control: public, max-age=0, must-revalidatediff --git a/apps/web/public/_redirects b/apps/web/public/_redirectsnew file mode 100644index 0000000..c87cff5--- /dev/null+++ b/apps/web/public/_redirects@@ -0,0 +1,2 @@+# SPA 路由支持+/* /index.html 200diff --git a/package.json b/package.jsonindex e3f79f4..873e1a0 100644--- a/package.json+++ b/package.json@@ -5,6 +5,7 @@"scripts": {"start": "nx serve web --host=0.0.0.0","build": "nx run-many -t=build",+ "build:web": "nx build web","test": "nx run-many -t=test","release": "node scripts/release-version.js","pub": "npm run build && node scripts/publish.js"