Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
107
Merge Requests
107
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
098a5e33
Commit
098a5e33
authored
May 24, 2023
by
Alain Takoudjou
Committed by
Alain Takoudjou
Jun 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drupal: build next.js after drupal is correctly installed
parent
bd7fac18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
software/drupal/buildout.hash.cfg
software/drupal/buildout.hash.cfg
+1
-1
software/drupal/drupal-instance.cfg.in
software/drupal/drupal-instance.cfg.in
+7
-4
No files found.
software/drupal/buildout.hash.cfg
View file @
098a5e33
[template-drupal-instance]
filename = drupal-instance.cfg.in
md5sum =
5b1c36160fdf459019785ef2d002a278
md5sum =
3df0d11d328701ae3e45387efa72a4de
[template-settings.php]
filename = default.settings.php.in
...
...
software/drupal/drupal-instance.cfg.in
View file @
098a5e33
...
...
@@ -86,10 +86,13 @@ command = if [ -z "$(ls -A ${directory:node})" ]; then
rm -rf ${directory:node};
cp -ax {{ nextjs_app_location }}/ ${directory:node};
fi
export NEXT_PUBLIC_DRUPAL_BASE_URL=${request-frontend:connection-secure_access}
export NEXT_IMAGE_DOMAIN=${request-frontend:connection-domain}
cd ${directory:node}
{{ nodejs_location }}/bin/npm run build
if [ -s "${directory:var}/.install-done" ]; then
# build next.js require next and next_jsonapi installed
export NEXT_PUBLIC_DRUPAL_BASE_URL=${request-frontend:connection-secure_access}
export NEXT_IMAGE_DOMAIN=${request-frontend:connection-domain}
cd ${directory:node}
{{ nodejs_location }}/bin/npm run build
fi
update-command = ${:command}
stop-on-error = true
...
...
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