From 969306c794c481e6ca697175d594763f7b0ac613 Mon Sep 17 00:00:00 2001 From: Mathias Schopmans Date: Mon, 25 Mar 2024 11:39:47 +0100 Subject: [PATCH] fix: mention basePath in local URL and set default to /techradar --- README.md | 5 +++-- data/config.json | 4 +++- package-lock.json | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1b204d63..cdaeae5d 100644 --- a/README.md +++ b/README.md @@ -207,7 +207,7 @@ Your final file and folder structure should look like this: Run `npm run build` to build the radar and upload the files of the `./build` folder to your server. You can view a development version of the radar by running `npm run serve` and open the radar in -your browser at `http://localhost:3000`. +your browser at `http://localhost:3000/techradar` or the path you specified via `basePath`. ## Advanced styling with `custom.css` @@ -255,4 +255,5 @@ run `npm run serve` or `npm run build` to see the changes. If you want to change core functionality of the radar, you can clone this repository and put your radar's markdown-files, config.json and about.md in the `data` folder. Run `npm run build:data` to parse the markdown files and create a `data.json` and then run `npm run dev` to start the -development server, which will be available at `http://localhost:3000`. +development server, which will be available at `http://localhost:3000/techradar` or the path +you specified via `basePath`. diff --git a/data/config.json b/data/config.json index 0967ef42..29f00c29 100644 --- a/data/config.json +++ b/data/config.json @@ -1 +1,3 @@ -{} +{ + "basePath": "/techradar" +} diff --git a/package-lock.json b/package-lock.json index 7d4b3393..16dcb0a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "aoe_technology_radar", - "version": "4.1.0", + "version": "4.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "aoe_technology_radar", - "version": "4.1.0", + "version": "4.2.0", "hasInstallScript": true, "bin": { "techradar": "bin/techradar.js"