From 8d90b9dec72a2b00efaefb9284e48799d0be0651 Mon Sep 17 00:00:00 2001 From: Marc Easen Date: Mon, 20 Apr 2020 16:10:24 +0100 Subject: [PATCH] fix(nextjs export): fixed warnings from nextjs regarding query parameters See https://github.com/zeit/next.js/pull/9908 --- next.config.js | 8 -------- tests/next/next.config.spec.ts | 24 ------------------------ 2 files changed, 32 deletions(-) diff --git a/next.config.js b/next.config.js index 049f8a0e..14977b87 100644 --- a/next.config.js +++ b/next.config.js @@ -119,17 +119,9 @@ const exportPathMap = async function() { }, '/preview': { page: '/preview', - query: { - content: '', - vse: '' - } }, '/visualization.html': { page: '/visualization', - query: { - vse: '', - content: '' - } } }); }; diff --git a/tests/next/next.config.spec.ts b/tests/next/next.config.spec.ts index 786a3621..2d9d9b4d 100644 --- a/tests/next/next.config.spec.ts +++ b/tests/next/next.config.spec.ts @@ -91,17 +91,9 @@ describe('next.config.js', (): void => { }, '/preview': { page: '/preview', - query: { - content: '', - vse: '', - }, }, '/visualization.html': { page: '/visualization', - query: { - vse: '', - content: '', - }, }, }); }); @@ -170,17 +162,9 @@ describe('next.config.js', (): void => { }, '/preview': { page: '/preview', - query: { - content: '', - vse: '', - }, }, '/visualization.html': { page: '/visualization', - query: { - vse: '', - content: '', - }, }, }); }); @@ -207,17 +191,9 @@ describe('next.config.js', (): void => { }, '/preview': { page: '/preview', - query: { - content: '', - vse: '', - }, }, '/visualization.html': { page: '/visualization', - query: { - vse: '', - content: '', - }, }, }); expect(global.console.warn).toHaveBeenCalled();