merge: restore TaskTree native timeline
This commit is contained in:
@@ -46,6 +46,13 @@ function nativeAuth(): Plugin {
|
||||
function nativeRuntimeConfig(): Plugin {
|
||||
return {
|
||||
name: "hwlab-tasktree-native-runtime-config",
|
||||
configureServer(server) {
|
||||
server.middlewares.use((request, response, next) => {
|
||||
if (request.url !== "/v1/web-performance" || request.method !== "POST") return next();
|
||||
response.writeHead(204, { "cache-control": "no-store" });
|
||||
response.end();
|
||||
});
|
||||
},
|
||||
transformIndexHtml() {
|
||||
return [{
|
||||
tag: "script",
|
||||
|
||||
Reference in New Issue
Block a user