完成 -apm 的全部更改,实现 spk://search,移除 spk://store

This commit is contained in:
2026-02-19 19:56:32 +08:00
parent 3165304016
commit b72f5f8da6
7 changed files with 95 additions and 34 deletions

View File

@@ -77,10 +77,10 @@ export default defineConfig(({ command }) => {
host: url.hostname,
port: +url.port,
proxy: {
"/local_amd64-apm": {
"/local_amd64-store": {
target: "https://erotica.spark-app.store",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/local_amd64-apm/, ""),
rewrite: (path) => path.replace(/^\/local_amd64-store/, ""),
},
"/local_stats": {
target: "https://feedback.spark-app.store",
@@ -92,10 +92,10 @@ export default defineConfig(({ command }) => {
} else {
return {
proxy: {
"/local_amd64-apm": {
"/local_amd64-store": {
target: "https://erotica.spark-app.store",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/local_amd64-apm/, ""),
rewrite: (path) => path.replace(/^\/local_amd64-store/, ""),
},
"/local_stats": {
target: "https://feedback.spark-app.store",