diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-09-12 23:27:49 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-09-12 23:27:49 +0800 |
| commit | 73ee8192413cacdda338b1f412f5c68a4d059751 (patch) | |
| tree | 66c4ea27cb1dadf2edd86a4d28533e25f4e39725 /Makefile | |
| parent | 3e0ae9c5135ce4cbf3f87eea79c5533e236befb6 (diff) | |
Make base URL configurable
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,14 +1,15 @@ HUGO ?= hugo PORT ?= 1314 +BASE_URL ?= http://localhost:1314/ .PHONY: build serve clean build: clean - $(HUGO) + $(HUGO) --baseURL "$(BASE_URL)" ./scripts/publish-raw serve: build - $(HUGO) server --disableFastRender --disableLiveReload --port $(PORT) + $(HUGO) server --disableFastRender --disableLiveReload --port $(PORT) --baseURL "http://localhost:$(PORT)/" clean: $(RM) -r public resources .hugo_build.lock |
