Update Console to handle specifications for self-hosted#2685
Merged
Conversation
Console (appwrite/console)Project ID: Tip Trigger functions via HTTP, SDKs, events, webhooks, or scheduled cron jobs |
Contributor
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
Contributor
|
@copilot try again |
- Modified functions layout loader to check isCloud before calling listSpecifications - Modified sites settings page loader to check isCloud before calling listSpecifications - Updated function create pages to handle empty specifications array safely - Updated updateResourceLimits components to handle empty specifications array safely - On self-hosted, specifications will be empty and not passed to backend, allowing default spec Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
Contributor
Author
Done! Implemented the specification handling changes in commit a1deff6. Changes:
Verification:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
[WIP] Update Console to handle specifications for self-hosted
Update Console to handle specifications for self-hosted
Dec 8, 2025
Contributor
stnguyen90
approved these changes
Dec 12, 2025
HarshMN2345
approved these changes
Dec 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Updates the Console to conditionally call
listSpecifications()only when running on Cloud. On self-hosted deployments, the specifications list will be empty, which means the specification parameter won't be passed when creating or updating functions or sites. This allows the backend to use the default (highest available) specification instead of the lowest.Changes Made
Layout Loaders
src/routes/(console)/project-[region]-[project]/functions/+layout.ts): AddedisCloudcheck to conditionally calllistSpecifications()- returns empty list on self-hostedsrc/routes/(console)/project-[region]-[project]/sites/site-[site]/settings/+page.ts): AddedisCloudcheck to conditionally calllistSpecifications()- returns empty list on self-hostedComponent Updates
Result
specificationparameter will be empty string or undefined when creating/updating, causing the backend to use the default (highest available) specificationTesting
The changes are minimal and focused, affecting only specification handling without altering other functionality.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.