Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
0a08ca06
Commit
0a08ca06
authored
Mar 19, 2025
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] generate og image after validating envs
parent
2db6f6d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
entrypoint.sh
deploy/scripts/entrypoint.sh
+3
-3
og_image_generator.js
deploy/scripts/og_image_generator.js
+1
-0
No files found.
deploy/scripts/entrypoint.sh
View file @
0a08ca06
...
...
@@ -35,9 +35,6 @@ export_envs_from_preset() {
# If there is a preset, load the environment variables from the its file
export_envs_from_preset
# Generate OG image
node
--no-warnings
./og_image_generator.js
# Download external assets
./download_assets.sh ./public/assets/configs
...
...
@@ -61,6 +58,9 @@ else
fi
echo
# Generate OG image
node
--no-warnings
./og_image_generator.js
# Create envs.js file with run-time environment variables for the client app
./make_envs_script.sh
...
...
deploy/scripts/og_image_generator.js
View file @
0a08ca06
...
...
@@ -28,6 +28,7 @@ if (process.env.NEXT_PUBLIC_OG_IMAGE_URL) {
background
:
bannerConfig
.
background
?.[
0
],
title_color
:
bannerConfig
.
text_color
?.[
0
],
invert_logo
:
!
process
.
env
.
NEXT_PUBLIC_NETWORK_LOGO_DARK
,
app_url
:
process
.
env
.
NEXT_PUBLIC_APP_HOST
,
};
console
.
log
(
'
⏳ Making request to OG image generator service...
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment