fix: mention basePath in local URL and set default to /techradar

This commit is contained in:
Mathias Schopmans
2024-03-25 11:39:47 +01:00
parent d8564afb41
commit 969306c794
3 changed files with 8 additions and 5 deletions

View File

@@ -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. 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 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` ## 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 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 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 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`.

View File

@@ -1 +1,3 @@
{} {
"basePath": "/techradar"
}

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "aoe_technology_radar", "name": "aoe_technology_radar",
"version": "4.1.0", "version": "4.2.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "aoe_technology_radar", "name": "aoe_technology_radar",
"version": "4.1.0", "version": "4.2.0",
"hasInstallScript": true, "hasInstallScript": true,
"bin": { "bin": {
"techradar": "bin/techradar.js" "techradar": "bin/techradar.js"