forked from calcom/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request calcom#162 from conneryn/main
feat(frontend): use runtime NEXT_PUBLIC_WEBAPP_URL to replace build-time frontend value
- Loading branch information
Showing
4 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM=$1 | ||
TO=$2 | ||
|
||
if [ "${FROM}" = "${TO}" ]; then | ||
echo "Nothing to replace, the value is already set to ${TO}." | ||
|
||
exit 0 | ||
fi | ||
|
||
# Only peform action if $FROM and $TO are different. | ||
echo "Replacing all statically built instances of $FROM with $TO." | ||
|
||
find apps/web/.next/ apps/web/public -type f | | ||
while read file; do | ||
sed -i "s|$FROM|$TO|g" "$file" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters