Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
977b2ce5b6 |
No files matched your search
@@ -36,7 +36,7 @@ export default function Hero() {
|
||||
data-reveal
|
||||
className="relative mt-8 font-display text-3xl font-medium leading-[1.05] tracking-[-0.03em] text-ink-strong sm:text-4xl"
|
||||
>
|
||||
Controllable AI{" "}
|
||||
Capable tools{" "}
|
||||
<span className="font-serif italic font-normal text-muted">
|
||||
for artists.
|
||||
</span>
|
||||
@@ -46,9 +46,8 @@ export default function Hero() {
|
||||
data-reveal
|
||||
className="relative mt-4 max-w-md text-lg leading-relaxed text-muted"
|
||||
>
|
||||
Artists need and deserve unparalleled control and precision.
|
||||
ArtCraft’s got you covered — compose in real 3D, then
|
||||
render with AI.
|
||||
ArtCraft builds open source tools for artists. We pride ourselves
|
||||
on freedom of control and expression.
|
||||
</p>
|
||||
|
||||
<div
|
||||
|
||||
@@ -1,42 +1,40 @@
|
||||
#!/usr/bin/env bash
|
||||
# This works on Linux and MacOS to launch the frontend dev server
|
||||
# This works on Linux and MacOS to launch the website (Next.js) dev server
|
||||
|
||||
root_dir=$(pwd)
|
||||
frontend_path="${root_dir}/frontend"
|
||||
website_path="${frontend_path}/apps/artcraft-website-next"
|
||||
port=3000
|
||||
|
||||
source "${root_dir}/script/common/frontend_preflight.sh"
|
||||
frontend_preflight "${frontend_path}"
|
||||
|
||||
echo "Running Artcraft Website in Dev Mode..."
|
||||
echo "Running Artcraft Website (Next.js) in Dev Mode..."
|
||||
echo ""
|
||||
|
||||
# Kill any process running on port 5741, which will block startup
|
||||
if lsof -i tcp:4200 &>/dev/null; then
|
||||
lsof -i tcp:4200 -t | xargs kill -9
|
||||
echo "Killed process running on port 4200"
|
||||
# Kill any process running on the dev port, which will block startup
|
||||
if lsof -i tcp:${port} &>/dev/null; then
|
||||
lsof -i tcp:${port} -t | xargs kill -9
|
||||
echo "Killed process running on port ${port}"
|
||||
else
|
||||
echo "No process running on port 4200"
|
||||
echo "No process running on port ${port}"
|
||||
fi
|
||||
|
||||
pushd "${frontend_path}" || exit
|
||||
# The Next.js app is excluded from the frontend npm workspace and has its own
|
||||
# package-lock.json, so it installs and runs from its own directory.
|
||||
pushd "${website_path}" || exit
|
||||
|
||||
frontend_npm_install
|
||||
|
||||
export VITE_ENVIRONMENT_TYPE="production"
|
||||
# Backend devs: launch with USE_LOCAL_API=1 to point the website at a local
|
||||
# storyteller-web on http://localhost:12345. Otherwise it hits production.
|
||||
if [[ "${USE_LOCAL_API:-0}" == "1" ]]; then
|
||||
export NEXT_PUBLIC_API_HOST="http://localhost:12345"
|
||||
echo "USE_LOCAL_API=1 — API calls will target ${NEXT_PUBLIC_API_HOST}"
|
||||
else
|
||||
echo "API calls will target production (set USE_LOCAL_API=1 for a local backend)"
|
||||
fi
|
||||
|
||||
# # Backend devs: launch with USE_LOCAL_API=1 (or `export USE_LOCAL_API=1` once
|
||||
# # in your shell profile) to point the frontend at a local storyteller-web on
|
||||
# # http://localhost:12345. Unset/0 — the frontend-dev default — hits
|
||||
# # production. This replaces the comment/uncomment dance around
|
||||
# # StorytellerApiHostStore.setDevelopment() in src/main.tsx.
|
||||
# export VITE_USE_LOCAL_API="${USE_LOCAL_API:-0}"
|
||||
# if [[ "${VITE_USE_LOCAL_API}" == "1" ]]; then
|
||||
# echo "USE_LOCAL_API=1 — API calls will target http://localhost:12345"
|
||||
# else
|
||||
# echo "API calls will target production (set USE_LOCAL_API=1 for a local backend)"
|
||||
# fi
|
||||
export VITE_USE_LOCAL_API="true"
|
||||
|
||||
nx dev artcraft-website
|
||||
npm run dev -- --port ${port}
|
||||
|
||||
popd || exit
|
||||
Reference in new issue
Block a user