mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix(web): auto generate open api build (#6561)
* fix: autogen typescript-sdk/build * chore: refactor script
This commit is contained in:
parent
e4277128be
commit
42d208859e
4 changed files with 17 additions and 8 deletions
13
web/bin/immich-web
Executable file
13
web/bin/immich-web
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
TYPESCRIPT_SDK=/usr/src/open-api/typescript-sdk
|
||||
|
||||
if [ ! -d "$TYPESCRIPT_SDK/build" ]; then
|
||||
echo "$TYPESCRIPT_SDK/build does not exist, building"
|
||||
npm --prefix "$TYPESCRIPT_SDK" install
|
||||
npm --prefix "$TYPESCRIPT_SDK" run build
|
||||
else
|
||||
echo "$TYPESCRIPT_SDK/build exists, skipping"
|
||||
fi
|
||||
|
||||
node ./node_modules/.bin/vite dev --host 0.0.0.0 --port 3000
|
||||
Loading…
Add table
Add a link
Reference in a new issue