Public
Readme

Static Vals

Serve static content from val.town

Usage

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.

Example

https://pomdtr-static.web.val.run/val_town_readme_style.css

Val Link

Code
HTTP
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
nbbaier-static.web.val.run
Updated: October 7, 2024