From c210e9f252a4fe6d126ff7d42ed6937dbd1ad1e5 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Thu, 27 Oct 2022 13:38:04 +0200 Subject: fix(web/ui): Make root redirect non-permanent This change makes the root redirect to the projects page temporary, to prevent browsers from caching this route indefinitely, while we might add a home page in the future. --- opendc-web/opendc-web-ui/next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opendc-web/opendc-web-ui/next.config.js') diff --git a/opendc-web/opendc-web-ui/next.config.js b/opendc-web/opendc-web-ui/next.config.js index a8588769..5ffd2533 100644 --- a/opendc-web/opendc-web-ui/next.config.js +++ b/opendc-web/opendc-web-ui/next.config.js @@ -35,7 +35,7 @@ module.exports = (phase) => withConfig({ { source: '/', destination: '/projects', - permanent: true + permanent: false } ] } -- cgit v1.2.3 From 2c2e559ca761a18605d047c7dd4236de5d5f4ce9 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Thu, 27 Oct 2022 13:39:07 +0200 Subject: build(web/ui): Do not optimize images for export This change disables optimizing images for exporting, since we do not want to depend on an external service. --- opendc-web/opendc-web-ui/next.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'opendc-web/opendc-web-ui/next.config.js') diff --git a/opendc-web/opendc-web-ui/next.config.js b/opendc-web/opendc-web-ui/next.config.js index 5ffd2533..f761ba74 100644 --- a/opendc-web/opendc-web-ui/next.config.js +++ b/opendc-web/opendc-web-ui/next.config.js @@ -38,5 +38,6 @@ module.exports = (phase) => withConfig({ permanent: false } ] - } + }, + images: { unoptimized: true } }) -- cgit v1.2.3