-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathnetlify.toml
25 lines (19 loc) · 938 Bytes
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[build]
command = "export BINDGEN_EXTRA_CLANG_ARGS=\"--sysroot=`emconfigure env 2> /dev/null | sed -n -e 's/^EMSCRIPTEN=//p'`/cache/sysroot\" && cargo +nightly build --package typebeat-website --target wasm32-unknown-emscripten --release && vite $TYPEBEAT_VITE website"
publish = "website/dist"
[build.environment]
EMCC_CFLAGS = "--embed-file assets/samples -gsource-map -s ALLOW_MEMORY_GROWTH=1 -s ENVIRONMENT=web -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s EXPORTED_RUNTIME_METHODS=\"['ccall','_free','UTF8ToString']\" -s EXPORT_ES6=1 -s MODULARIZE=1"
TYPEBEAT_VITE = "build"
[dev]
command = "netlify build"
[context.dev.environment]
TYPEBEAT_VITE = "serve"
[[redirects]]
from = "https://typebeat.netlify.app/*"
to = "https://typebeat.kofi.sexy/:splat"
[[redirects]]
from = "/download/macos/*"
to = "https://macos--typebeat.netlify.app/:splat"
[[redirects]]
from = "/download/windows/*"
to = "https://windows--typebeat.netlify.app/:splat"