Skip to content

Commit

Permalink
configure bridge.ts for production for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrraaiigg committed Nov 12, 2024
1 parent 72093b8 commit ad51748
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions deno/bridge.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {serve} from "https://deno.land/std/http/mod.ts"

// Uncomment the following line for production.
// try {const tether = await import("https://caffeine.js.org/deno/tether.js")}
try {const tether = await import("https://caffeine.js.org/deno/tether.js")}

// Uncomment the following line for development.
try {const tether = await import("./tether.js")}
// try {const tether = await import("./tether.js")}
catch(e) {console.log('=== '+e.message)}

import {delay} from "https://deno.land/std/async/mod.ts"
Expand All @@ -13,10 +13,10 @@ caffeine.worker = (
new Worker(
new URL(
// Uncomment the following line for production.
// "https://caffeine.js.org/deno/squeak-worker.js",
"https://caffeine.js.org/deno/squeak-worker.js",

// Uncomment the following line for development.
"./squeak-worker.js",
// "./squeak-worker.js",
import.meta.url).href,
{type: "module"}))

Expand Down Expand Up @@ -77,12 +77,12 @@ caffeine.worker.postMessage(JSON.stringify({
imageName: 'caffeine',
appName: 'caffeine',
// Uncomment the following line for production.
// proxy: 'https://caffeine.js.org/',
proxy: 'https://caffeine.js.org/',

// Uncomment the following line for development. You'll need to
// check out the Caffeine repository from GitHub, and serve it with
// a local webserver, so that http://localhost/memories has the
// memory ZIPs.
proxy: 'http://192.168.1.66:8080/',
// proxy: 'http://localhost:8080/',
// proxy: 'http://192.168.1.66:8080/',
proxy: 'http://localhost:8080/',
parameters: {fibbly: 'wibbly'}}))
1 change: 1 addition & 0 deletions js/squeakjs/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ module('users.bert.SqueakJS.vm').requires().toRun(function() {
if (typeof SqueakDBFake == "undefined") {
if (typeof indexedDB == "undefined")
console.warn("IndexedDB not supported by this browser, using localStorage");

self.SqueakDBFake = {
bigFiles: {},
bigFileThreshold: 100000,
Expand Down

1 comment on commit ad51748

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on ad51748 Nov 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Module not found "file:///src/deno/squeak.ts".

Please sign in to comment.