FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
project logo
gaimeri17getUpdateAvailability
Returns if an update is available.
Public
Like
getUpdateAvailability
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
Code
/
Search
README.md

getUpdateAvailability

Returns if the update is available.

Does not actually update anything, just tells if it's possible.

Accessed via https://gaimeri17--d53f24729b424405a46d59f47fe47dab.web.val.run/1.0.0 where "1.0.0" is your version.

Current version is defined in the environment variable currentVersion.

If update is available, the following is returned:

{
  "message": "Update is available",
  "userVersion": "1.0.0",
  "serverVersion": "1.0.1"
}

If an update is not available, the following is returned:

{
  "message": "Update is not available",
  "userVersion": "1.0.0",
  "serverVersion": "1.0.0"
}

If no userVersion is provided in the URL, the following is returned:

{
  "message": "No userVersion provided"
}

If an unsupported method is used, the following is returned:

{
  "message":"Unsupported HTTP method","method":"POST"
}

The correct method to use is GET.

Code
README.md
H
main.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.