Template
更新 Tauri 配置,添加构建命令并修复安全策略
This commit is contained in:
1 parent
798df0dedd
commit
1ce41b66ea
2 files changed
+5
-3
No files matched your search
@@ -6,19 +6,20 @@
|
||||
"build": {
|
||||
"beforeDevCommand": "",
|
||||
"devUrl": "http://localhost:51515/root/light-code-center/",
|
||||
"beforeBuildCommand": "bun run build",
|
||||
"beforeBuildCommand": "",
|
||||
"frontendDist": "../dist"
|
||||
},
|
||||
"app": {
|
||||
"windows": [
|
||||
{
|
||||
"url": "http://localhost:51515/root/light-code-center/",
|
||||
"title": "tauri-template",
|
||||
"width": 800,
|
||||
"height": 600
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
"csp": null
|
||||
"csp": "default-src 'self' http://localhost:51515 https://*.kevisual.cn; connect-src 'self' https://* wss://*"
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
|
||||
Reference in new issue
Block a user