We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2575b70 commit 95ea041Copy full SHA for 95ea041
preview/preview.js
@@ -148,7 +148,6 @@ const checkRedirects = async (core, path) => {
148
*/
149
// TODO Rebuild redirects file without nginx stuff. And stream it properly.
150
let target = "/guide" + path;
151
- const redirectsStart = Date.now();
152
const streamToString = stream => {
153
const chunks = []
154
return new Promise((resolve, reject) => {
@@ -171,7 +170,6 @@ const checkRedirects = async (core, path) => {
171
170
const regex = new RegExp(regexText.replace('(?i)', ''), 'i');
172
target = target.replace(regex, replacement);
173
}
174
- console.log("took", Date.now() - redirectsStart);
175
return "/guide" + path === target ? null : target;
176
177
0 commit comments