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:
push:
branches: ["main"]
branches: [ "main" ]
workflow_dispatch:
@@ -21,6 +21,8 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
env:
BASE: /weedmap/
steps:
- name: Checkout
uses: actions/checkout@v4
+16
View File
@@ -13,6 +13,7 @@
"leaflet-easybutton": "^2.4.0"
},
"devDependencies": {
"@types/node": "^20.11.20",
"autoprefixer": "^10.4.17",
"postcss": "^8.4.35",
"prettier": "^3.2.5",
@@ -508,6 +509,15 @@
"@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": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz",
@@ -1852,6 +1862,12 @@
"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": {
"version": "1.0.13",
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz",
+1
View File
@@ -11,6 +11,7 @@
"check": "prettier --check ."
},
"devDependencies": {
"@types/node": "^20.11.20",
"autoprefixer": "^10.4.17",
"postcss": "^8.4.35",
"prettier": "^3.2.5",
+5
View File
@@ -0,0 +1,5 @@
import { defineConfig } from 'vite';
export default defineConfig({
base: process.env.BASE || '/'
});