Public
Like
6
static-old
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.
main.tsx
https://pomdtr--36bc58a8277f11f0b46e569c3dd06744.web.val.run
Serve static content from val.town
First, fork this val to get your own http endpoint.
Then create a val that uses a string as it's default export, or a single string export. The val must be either public or unlisted.
export default `<static content>`
You can then fetch the exported string from outside val.town using:
curl 'https://<owner>-static.web.val.run/<val>.<extension>'
The Content-Type
will be dynamically set depending on the provided extension.