Customize Workspaces Launch Button
About 191 wordsLess than 1 minute
You can configure the Workspaces launch button according to your needs, such as: button name, button description, button disabled status, and CPU cores for launch.
Add a .cnb/settings.yml
file to your repository:
# .cnb/settings.yml
workspace:
# Customize the Workspaces launch button on branch page/repository homepage
launch:
# All parameters below are optional
button:
# Button name, default is: Workspaces
name: Launch Workspace
description: Start remote development, quickly experience cloud environment
# CPU cores, default is: 8. Only valid for default template. If you have a custom Workspaces launch pipeline, this configuration will not take effect
cpus: 8
# Whether to disable this button, default is: false meaning not disabled. true means disabled
disabled: false
# After clicking the Workspaces button, automatically open WebIDE when environment is created (regardless of whether client connection to remote development is supported), default is false
# When openssh is not installed in the development environment (only WebIDE is supported): WebIDE will automatically open after environment creation regardless of whether this parameter is configured as true or false
autoOpenWebIDE: true
Note: When file parsing fails or size exceeds limit, this configuration will not be used