fix dev server (still no watch build)

This commit is contained in:
Percs 2024-07-13 15:38:01 -05:00
parent c3db610837
commit 1ea21280f8
2 changed files with 5 additions and 7 deletions

View file

@ -15,8 +15,6 @@ import { epoxyPath } from "@mercuryworkshop/epoxy-transport"
import { libcurlPath } from "@mercuryworkshop/libcurl-transport"
import { bareModulePath } from "@mercuryworkshop/bare-as-module3"
let watcher = watch()
const bare = createBareServer("/bare/", {
logErrors: true
});
@ -46,7 +44,7 @@ fastify.register(fastifyStatic, {
});
fastify.register(fastifyStatic, {
root: join(fileURLToPath(new URL(".", import.meta.url)), "./dist"),
prefix: "/dist/",
prefix: "/scram/",
decorateReply: false
})
fastify.register(fastifyStatic, {

View file

@ -4,8 +4,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="prefetch" href="/scramjet/scramjet.worker.js">
<link rel="prefetch" href="/scramjet/scramjet.bundle.js">
<link rel="prefetch" href="/scram/scramjet.worker.js">
<link rel="prefetch" href="/scram/scramjet.bundle.js">
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&amp;family=Inter+Tight:ital,wght@0,100..900;1,100..900&amp;family=Inter:wght@100..900&amp;display=swap&amp;" rel="stylesheet">
<style>
body, html, #app {
@ -23,7 +23,7 @@
<script src="https://unpkg.com/dreamland"></script>
<script src="/baremux/index.js" defer></script>
<script src="ui.js" defer></script>
<script src="/scramjet/scramjet.codecs.js"></script>
<script src="/scramjet/scramjet.config.js"></script>
<script src="/scram/scramjet.codecs.js"></script>
<script src="/scram/scramjet.config.js"></script>
</body>
</html>