From 90b601c40060f271ffd6522bde72034b775e349d Mon Sep 17 00:00:00 2001 From: Jayden Seric Date: Thu, 1 Sep 2022 20:45:48 +1000 Subject: [PATCH] Better Next.js config type safety. --- app/next.config.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/next.config.mjs b/app/next.config.mjs index e5882cf..5aaef24 100644 --- a/app/next.config.mjs +++ b/app/next.config.mjs @@ -1,8 +1,9 @@ // @ts-check +/** @type {import("next").NextConfig} */ export default { env: { - API_URI: process.env.API_URI, + API_URI: /** @type {string} */ (process.env.API_URI), }, i18n: { locales: ["en-US"],