commit fdf92c3ab90294d62c586ad10929061cc1fae999
parent 939e34605531f20de707e966d01ab0312c9ae30f
Author: William Casarin <jb55@jb55.com>
Date: Sun, 28 Jan 2024 14:16:07 -0800
dist: setup static prod and staging builds
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package.json b/package.json
@@ -4,7 +4,8 @@
"private": true,
"scripts": {
"dev": "next dev",
- "build": "npm run i18n && next build",
+ "build": "npm run i18n && NEXT_PUBLIC_PURPLE_API_BASE_URL=https://api.damus.io next build && mv out out-production",
+ "build-staging": "npm run i18n && NEXT_PUBLIC_PURPLE_API_BASE_URL=https://api-staging.damus.io next build && mv out out-staging",
"start": "next start",
"export": "npm run i18n && next export",
"lint": "next lint",