Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

Obtain the endpoint URL of the currently running val.

import { getEndpointUrl } from 'https://esm.town/v/g/getEndpointUrl'; const ENDPOINT_URL = getEndpointUrl(import.meta.url);

Migrated from folder: util/getEndpointUrl