Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
OFCode-dev
heldnote
Repository navigation
Code
Issues
Pull requests
2
(2)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
heldnote
/
constants.js
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
20 lines (19 loc) · 1.18 KB
main
Breadcrumbs
heldnote
/
constants.js
Copy path
Top
File metadata and controls
Code
Blame
20 lines (19 loc) · 1.18 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export const LIMITS = {
DRAFT_FLUSH_MAX_MS: 300,
MAX_NOTE_SIZE_BYTES: 2 * 1024 * 1024, // 2 MB — provisional, see Task 21
PROTECTED_RECENT_COUNT: 50,
PROTECTED_RECENT_MS: 24 * 60 * 60 * 1000,
PER_NOTE_HISTORY_BYTE_BUDGET: 10 * 1024 * 1024, // 10 MB — provisional, see Task 21
// NOT ENFORCED ANYWHERE YET. Unlike the two limits above (MAX_NOTE_SIZE_BYTES
// is checked on the draft path, PER_NOTE_HISTORY_BYTE_BUDGET bounds the
// pruning ladder), nothing reads this value. Enforcing it means summing
// version bytes across every note before deciding what to prune — a real
// change to runMaintenance()'s shape, not a constant lookup. Stated here
// because a budget that looks enforced and is not is worse than one that is
// openly a placeholder.
GLOBAL_HISTORY_BYTE_BUDGET: 200 * 1024 * 1024, // 200 MB — provisional, see Task 21
};
// Google Drive backup (drive-sync.js). Empty string = feature hidden: the
// Drive section of the backup panel only renders when a client id is set.
// This is an OAuth *client* id — public by design, not a secret.
export const GOOGLE_DRIVE_CLIENT_ID = '1038132081392-155mtbifsu9k7saa8umeanrgk4k9bgpn.apps.googleusercontent.com';
You can’t perform that action at this time.