From 9b440c0da330ab290a4cfeffdf273eae0d4a4f40 Mon Sep 17 00:00:00 2001 From: "Thomas \"ajnart\" Camlong" Date: Thu, 19 May 2022 02:04:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Add=20basic=20BASE=5FURL=20and?= =?UTF-8?q?=20PORT=20env=20utilisation=20#76?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.js | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 9cc409a07..a5d9163bd 100644 --- a/next.config.js +++ b/next.config.js @@ -1,3 +1,5 @@ +const { env } = require('process'); + const withBundleAnalyzer = require('@next/bundle-analyzer')({ enabled: process.env.ANALYZE === 'true', }); @@ -10,4 +12,5 @@ module.exports = withBundleAnalyzer({ experimental: { outputStandalone: true, }, + basePath: env.BASE_URL, }); diff --git a/package.json b/package.json index 8b110f68e..df92b3155 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "dev": "next dev", "build": "next build", "analyze": "ANALYZE=true next build", - "start": "next start --port 7575", + "start": "next start", "typecheck": "tsc --noEmit", "export": "next build && next export", "lint": "next lint",