1 Commits

Author SHA1 Message Date
1d04befff1 🐛 Fix trailing slash 2025-07-01 19:08:34 +02:00
3 changed files with 9 additions and 22 deletions

View File

@ -4,7 +4,9 @@ on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
jobs:
build:
@ -13,9 +15,5 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build production
run: docker compose up -d --build prod
if: gitea.ref == 'refs/heads/master'
- name: Build develop
run: docker compose up -d --build dev
if: gitea.ref == 'refs/heads/develop'
- name: Run docker-compose
run: docker compose up -d --build

View File

@ -1,20 +1,9 @@
services:
prod:
hostname: martials.no
container_name: "martials.no"
web:
container_name: martials.no
restart: always
build:
context: .
dockerfile: Dockerfile
ports:
- "4321:4321"
dev:
hostname: dev.martials.no
container_name: "dev.martials.no"
restart: always
build:
context: .
dockerfile: Dockerfile
ports:
- "4322:4321"
- "4321:4321"

View File

@ -8,7 +8,7 @@ let paths: string[]
if (pathname === "/") {
paths = ["~"]
} else {
paths = ["~", ...pathname.split("/").slice(1)]
paths = ["~", ...pathname.split("/").filter(x => x)]
}
function getLink(path: string): NavLink {