feat(frontend): use runtime NEXT_PUBLIC_WEBAPP_URL to replace build-time frontend value
This commit is contained in:
5
scripts/replace-placeholders.sh
Executable file
5
scripts/replace-placeholders.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
# Find and replace placeholder values with runtime-specific environment values
|
||||
find apps/web/.next/ apps/web/public -type f |
|
||||
while read file; do
|
||||
sed -i "s|https://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER|$NEXT_PUBLIC_WEBAPP_URL|g" "$file"
|
||||
done
|
||||
@@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
scripts/replace-placeholders.sh
|
||||
scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
|
||||
npx prisma migrate deploy --schema /calcom/packages/prisma/schema.prisma
|
||||
npx ts-node --transpile-only /calcom/packages/prisma/seed-app-store.ts
|
||||
|
||||
Reference in New Issue
Block a user