Skip to content

Commit c826fa1

Browse files
committed
CI build fix
1 parent 9dd281c commit c826fa1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

astro.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const theme = JSON.parse(fs.readFileSync("./themes/github-dark-modified-lighter.
1717

1818
// https://astro.build/config
1919
export default defineConfig({
20+
site: "https://grain-lang.org",
2021
vite: {
2122
// We want to include wasm files as raw data and then we glob for their urls
2223
assetsInclude: ["**/*.wasm"],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"prepare": "node scripts/generateContributors.js && node src/playground/cli.mjs",
88
"dev": "astro dev",
99
"start": "astro dev",
10-
"build": "astro check && astro build",
10+
"build": "NODE_OPTIONS=--max-old-space-size=8192 astro build",
1111
"preview": "astro preview",
1212
"astro": "astro"
1313
},

src/playground/compiler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ addEventListener("message", async ({ data }) => {
9292
args: [],
9393
});
9494
const module = await WebAssembly.compile(wasm);
95-
await wasi.instantiate(module, {});
95+
const instance = wasi.instantiate(module, {});
9696
// TODO: Do we actually want to handle the exitCode?
97-
wasi.start();
97+
wasi.start(instance);
9898
postMessage({ stdout: processWasiStdout(wasi.getStdoutString()) });
9999
} catch (err) {
100100
// TODO: deal with err better?

0 commit comments

Comments
 (0)