deer-flow/frontend/Makefile
JeffJiang dfaeef3772
fix(frontend): support standalone demo APIs and runtime GitHub stars (#5302)
* fix(frontend): support standalone demo APIs and runtime GitHub stars

* Update API origin URL to use environment variables

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* test(frontend): align static demo tests with runtime origin

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-09-09 00:00:56 +08:00

34 lines
635 B
Makefile

ifeq ($(OS),Windows_NT)
PYTHON ?= python
else
PYTHON ?= python3
endif
PNPM = $(PYTHON) ../scripts/pnpm.py
install:
$(PNPM) install
build:
$(PNPM) build
dev:
$(PNPM) dev
test:
$(PNPM) test
test-e2e:
$(PNPM) test:e2e
lint:
$(PNPM) lint
format:
$(PNPM) format:write
build-static:
NEXT_CONFIG_BUILD_OUTPUT=standalone SKIP_ENV_VALIDATION=1 NEXT_PUBLIC_STATIC_WEBSITE_ONLY=true $(PNPM) build
@if [ -d .next/static ]; then mkdir -p .next/standalone/.next && cp -R .next/static .next/standalone/.next/static; fi
@if [ -d public ]; then mkdir -p .next/standalone/public && cp -R public/. .next/standalone/public/; fi