Spaces:
Running
Running
Download preview.ts from Museris/rpkg-character-builder: direct link, hf CLI and curl.
- Browser
- Download file 467 Bytes
-
https://huggingface.co/spaces/Museris/rpkg-character-builder/resolve/main/preview.ts
- Command line
-
hf download hf://spaces/Museris/rpkg-character-builder/preview.ts
-
curl -L -o preview.ts https://huggingface.co/spaces/Museris/rpkg-character-builder/resolve/main/preview.ts
467 Bytes
| const files: Record<string, string> = { | |
| '/': 'dist/index.html', | |
| '/index.html': 'dist/index.html', | |
| '/app.js': 'dist/app.js', | |
| '/style.css': 'dist/style.css', | |
| } | |
| Bun.serve({ | |
| port: 4173, | |
| fetch(request) { | |
| const path = files[new URL(request.url).pathname] | |
| return path ? new Response(Bun.file(new URL(path, import.meta.url))) : new Response('Not found', {status: 404}) | |
| }, | |
| }) | |
| console.log('Character builder: http://localhost:4173') | |