Skip to content

Commit

Permalink
atualiza com modificações da main
Browse files Browse the repository at this point in the history
  • Loading branch information
samoel-silva committed Jan 27, 2025
2 parents 755f4bf + 9a67a69 commit 008e6c7
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 68 deletions.
11 changes: 10 additions & 1 deletion frontend/.s2i/bin/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,15 @@ fi
handle_frontend_addons() {
echo "Processing FRONTEND_ADDONS... Updating addons in volto.config.js"
addons=$(echo "$FRONTEND_ADDONS" | sed "s|[][']||g") # Remove brackets and quotes
sed -i "/^const addons = /c\const addons = [$addons];" volto.config.js
sed -i "/^const addons = \[/,/];/c\const addons = [$addons];" volto.config.js
# Validate volto.config.js using Node.js
if ! node --check volto.config.js; then
echo "Error: volto.config.js contains syntax errors."
exit 1 # Exit with a non-zero status to signal failure
fi

# Proceed with other build steps if validation passes
echo "volto.config.js is valid. Continuing with the build process..."
}

# Function to handle SET_THEME
Expand Down Expand Up @@ -222,6 +230,7 @@ else
NODE_ENV=development make install

echo "---> Executing pnpm build"

make build

# set permissions for any installed artifacts
Expand Down
Loading

0 comments on commit 008e6c7

Please sign in to comment.