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

View File

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

View File

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