create-next-imagicma 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-next-imagicma",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "create-next-imagicma": "./bin/create-next-imagicma.mjs"
@@ -62,6 +62,7 @@ shared/
62
62
  - 禁止主动注入环境变量到 `process.env`。
63
63
  - 端口契约只允许使用大写 `PORT`。
64
64
  - 运行时端口读取顺序固定为:外部环境变量 `PORT` -> 项目内 `.imagicma/runtime.env`。
65
+ - 预览地址规则固定为 `https://{port}.preview.imagicma.cn`,其中 `port` 为实际启动端口。
65
66
 
66
67
  ## 状态文件写入规则
67
68
 
@@ -3,7 +3,8 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Agentma App · Powered by Agentma</title>
6
+ <link rel="icon" type="image/png" href="/favicon.png" />
7
+ <title>Agentma App · Powered by agentma.cn</title>
7
8
  <script src="/imagicma-picker-bridge.js"></script>
8
9
  <script src="/imagicma-preview-feedback.js"></script>
9
10
  </head>
@@ -9,7 +9,7 @@ export function Providers({ children }: { children: React.ReactNode }) {
9
9
  const [queryClient] = React.useState(() => makeQueryClient());
10
10
 
11
11
  return (
12
- <ThemeProvider attribute="class" defaultTheme="system" enableSystem>
12
+ <ThemeProvider attribute="class">
13
13
  <QueryClientProvider client={queryClient}>
14
14
  <TooltipProvider>
15
15
  <Toaster />