From 7934ebf213c6be5c939657c0689f2c44315a7f5c Mon Sep 17 00:00:00 2001 From: Gabriel Montes Date: Thu, 4 Apr 2024 10:42:34 -0400 Subject: [PATCH] Add base-path to site. --- README.md | 2 +- site/next.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a6a073a..de0680e 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ npm run test:e2e ```sh npm ci cd site -npm run build +BASE_PATH="/pure.finance" npm run build ``` Then upload the folder `site/out` to the hosting server. diff --git a/site/next.config.js b/site/next.config.js index 13e9399..ada91f0 100644 --- a/site/next.config.js +++ b/site/next.config.js @@ -1,4 +1,5 @@ module.exports = { + basePath: process.env.BASE_PATH || '', images: { unoptimized: true }, output: 'export' }