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' }