Add path for gh pages

This commit is contained in:
2024-02-24 01:07:37 +01:00
parent 371a3855dd
commit fb4db66780
4 changed files with 26 additions and 2 deletions
+3 -1
View File
@@ -2,7 +2,7 @@ name: Deploy static content to Pages
on: on:
push: push:
branches: ["main"] branches: [ "main" ]
workflow_dispatch: workflow_dispatch:
@@ -21,6 +21,8 @@ jobs:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
BASE: /weedmap/
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
+16
View File
@@ -13,6 +13,7 @@
"leaflet-easybutton": "^2.4.0" "leaflet-easybutton": "^2.4.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.11.20",
"autoprefixer": "^10.4.17", "autoprefixer": "^10.4.17",
"postcss": "^8.4.35", "postcss": "^8.4.35",
"prettier": "^3.2.5", "prettier": "^3.2.5",
@@ -508,6 +509,15 @@
"@types/geojson": "*" "@types/geojson": "*"
} }
}, },
"node_modules/@types/node": {
"version": "20.11.20",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.20.tgz",
"integrity": "sha512-7/rR21OS+fq8IyHTgtLkDK949uzsa6n8BkziAKtPVpugIkO6D+/ooXMvzXxDnZrmtXVfjb1bKQafYpb8s89LOg==",
"dev": true,
"dependencies": {
"undici-types": "~5.26.4"
}
},
"node_modules/ansi-regex": { "node_modules/ansi-regex": {
"version": "6.0.1", "version": "6.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz",
@@ -1852,6 +1862,12 @@
"node": ">=14.17" "node": ">=14.17"
} }
}, },
"node_modules/undici-types": {
"version": "5.26.5",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
"dev": true
},
"node_modules/update-browserslist-db": { "node_modules/update-browserslist-db": {
"version": "1.0.13", "version": "1.0.13",
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz",
+2 -1
View File
@@ -11,6 +11,7 @@
"check": "prettier --check ." "check": "prettier --check ."
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.11.20",
"autoprefixer": "^10.4.17", "autoprefixer": "^10.4.17",
"postcss": "^8.4.35", "postcss": "^8.4.35",
"prettier": "^3.2.5", "prettier": "^3.2.5",
@@ -23,4 +24,4 @@
"leaflet": "^1.9.4", "leaflet": "^1.9.4",
"leaflet-easybutton": "^2.4.0" "leaflet-easybutton": "^2.4.0"
} }
} }
+5
View File
@@ -0,0 +1,5 @@
import { defineConfig } from 'vite';
export default defineConfig({
base: process.env.BASE || '/'
});