diff --git a/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt b/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt index 9c1fbb3be6e..72cd4a326a6 100644 --- a/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt +++ b/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt @@ -194,4 +194,4 @@ /start/forms /start/start-forms /start/routing /start/start-routing /testing /guide/testing -/testing/first-app-tests.html /guide/testing \ No newline at end of file +/testing/first-app-tests.html /guide/testing diff --git a/aio/tests/deployment/shared/helpers.ts b/aio/tests/deployment/shared/helpers.ts index b4d8af5bea6..f127aff0126 100644 --- a/aio/tests/deployment/shared/helpers.ts +++ b/aio/tests/deployment/shared/helpers.ts @@ -41,7 +41,10 @@ export function loadRedirects(): FirebaseRedirectConfig[] { export function loadLegacyUrls() { const pathToLegacyUrls = `${__dirname}/URLS_TO_REDIRECT.txt`; - const urls = readFileSync(pathToLegacyUrls, 'utf8').split('\n').map(line => line.split('\t')); + const urls = readFileSync(pathToLegacyUrls, 'utf8') + .split('\n') + .filter(line => line.trim() !== '') + .map(line => line.split('\t')); return urls; }