Congrats! You've just deployed the Next.js Drupal demo template for Platform.sh!
This template has already configured the multi-app relationship for you, which will work automatically across every development environment you create from this point forward. Be sure to follow the instructions on the right to complete the demo.
When you deployed this template, a few things happend.
Drupal was fully installed, all of the necessary modules and settings were configured to communicate with the Next.js frontend, and connection credentials were shared with that frontend application.
Now that that's completed, there are only two steps you'll need to take to complete the demo.
If anything seems unclear, be sure to check out the README for more details.
1. Update your Drupal admin credentials
Drupal has been installed, and an admin user was created. Visit the Drupal login page, then update your email and password to something more memorable.
- username:
admin - password:
2X7RHZRTQ2M246PLNKMHQMVUG3CGNGDCMRYL7LENVBSPQ3HQGFUA====
2. Rebuild the environment
Platform.sh is secure by default. Part of that security involves read-only access to the file system and container isolation during the build process. Because of this, credentials for the frontend application were not yet available for the first Next.js build.
No worries! This will only be the case on this first deployment. To view the final frontend build, all we need to do is rebuild the Platform.sh environment and restart the container.
To do this, we just need to add a variable using the Platform.sh CLI:
platform variable:create -p z7vltsqra5fus -e main -l environment --name DEPLOY --value FRIDAY --visible-build=true --prefix=env: -n