浏览代码

Created a separate API Docs profile to launch the browser at the API docs, and the nowebclient profile no longer launches the browser at all.

Don't point to web in the client because it won't redirect properly.

Modified the vscode launch.json to automatically launch the browser when debugging the first configuration. The
spookbits 4 年之前
父节点
当前提交
c912093579
共有 2 个文件被更改,包括 12 次插入2 次删除
  1. 5 1
      .vscode/launch.json
  2. 7 1
      Jellyfin.Server/Properties/launchSettings.json

+ 5 - 1
.vscode/launch.json

@@ -11,7 +11,11 @@
             "cwd": "${workspaceFolder}/Jellyfin.Server",
             "cwd": "${workspaceFolder}/Jellyfin.Server",
             "console": "internalConsole",
             "console": "internalConsole",
             "stopAtEntry": false,
             "stopAtEntry": false,
-            "internalConsoleOptions": "openOnSessionStart"
+            "internalConsoleOptions": "openOnSessionStart",
+            "serverReadyAction": {
+                "action": "openExternally",
+                "pattern": "Overriding address\\(es\\) \\'(https?:\\S+)\\'",
+            }
         },
         },
         {
         {
             "name": ".NET Core Launch (nowebclient)",
             "name": ".NET Core Launch (nowebclient)",

+ 7 - 1
Jellyfin.Server/Properties/launchSettings.json

@@ -3,13 +3,19 @@
     "Jellyfin.Server": {
     "Jellyfin.Server": {
       "commandName": "Project",
       "commandName": "Project",
       "launchBrowser": true,
       "launchBrowser": true,
-      "launchUrl": "web",
       "applicationUrl": "http://localhost:8096",
       "applicationUrl": "http://localhost:8096",
       "environmentVariables": {
       "environmentVariables": {
         "ASPNETCORE_ENVIRONMENT": "Development"
         "ASPNETCORE_ENVIRONMENT": "Development"
       }
       }
     },
     },
     "Jellyfin.Server (nowebclient)": {
     "Jellyfin.Server (nowebclient)": {
+      "commandName": "Project",
+      "environmentVariables": {
+        "ASPNETCORE_ENVIRONMENT": "Development"
+      },
+      "commandLineArgs": "--nowebclient"
+    },
+    "Jellyfin.Server (API Docs)": {
       "commandName": "Project",
       "commandName": "Project",
       "launchBrowser": true,
       "launchBrowser": true,
       "launchUrl": "api-docs/swagger",
       "launchUrl": "api-docs/swagger",